mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Remove restart count reset
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user