Remove restart count reset

This commit is contained in:
2025-07-21 22:30:45 +02:00
parent 4008d18042
commit d936cfcdf2

View File

@@ -430,10 +430,9 @@ func (i *Instance) handleRestart() {
log.Printf("Failed to restart instance %s: %v", i.Name, err) log.Printf("Failed to restart instance %s: %v", i.Name, err)
} else { } else {
log.Printf("Successfully restarted instance %s", i.Name) log.Printf("Successfully restarted instance %s", i.Name)
// Reset restart count on successful restart // Clear the cancel function
i.mu.Lock() i.mu.Lock()
i.restarts = 0 i.restartCancel = nil
i.restartCancel = nil // Clear the cancel function
i.mu.Unlock() i.mu.Unlock()
} }
} }