mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix: Clean up health check interval in onShellExecutionComplete to prevent memory leak
This commit is contained in:
parent
d4cd4772f3
commit
2868365fae
1 changed files with 7 additions and 0 deletions
|
|
@ -114,6 +114,13 @@ export class ServiceManager {
|
|||
// If stopping, status changes from stopping to stopped/failed
|
||||
// If unexpected exit, status changes from starting/ready/running to stopped/failed
|
||||
serviceHandle.status = details.exitCode === 0 ? "stopped" : "failed"
|
||||
|
||||
// Clean up health check interval to prevent memory leak
|
||||
if (serviceHandle.healthCheckIntervalId) {
|
||||
clearInterval(serviceHandle.healthCheckIntervalId)
|
||||
serviceHandle.healthCheckIntervalId = undefined
|
||||
}
|
||||
|
||||
this.notifyStatusChange(serviceHandle)
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue