mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:18:28 +00:00
fix(runtime): guard cleanup and preserve skipped cron jobs
This commit is contained in:
@@ -168,7 +168,7 @@ function moveToFinished(session: ProcessSession, status: ProcessStatus) {
|
||||
session.child.stderr?.destroy?.();
|
||||
|
||||
// Remove all event listeners to prevent memory leaks
|
||||
session.child.removeAllListeners();
|
||||
session.child.removeAllListeners?.();
|
||||
|
||||
// Clear the reference
|
||||
delete session.child;
|
||||
|
||||
Reference in New Issue
Block a user