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)
} else {
log.Printf("Successfully restarted instance %s", i.Name)
// Reset restart count on successful restart
// Clear the cancel function
i.mu.Lock()
i.restarts = 0
i.restartCancel = nil // Clear the cancel function
i.restartCancel = nil
i.mu.Unlock()
}
}