mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +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)
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user