mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Implement periodic timeout checking for instances
This commit is contained in:
@@ -15,8 +15,7 @@ func (i *Process) ShouldTimeout() bool {
|
||||
i.mu.RLock()
|
||||
defer i.mu.RUnlock()
|
||||
|
||||
// If idle timeout is not set, no timeout
|
||||
if i.options.IdleTimeout == nil || *i.options.IdleTimeout <= 0 {
|
||||
if !i.Running || i.options.IdleTimeout == nil || *i.options.IdleTimeout <= 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user