mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix: preserve timer receiver for cleanup waits
This commit is contained in:
@@ -130,7 +130,9 @@ function waitForTerminalEventHandlers(params: {
|
||||
resolve("timeout");
|
||||
}, PLUGIN_TERMINAL_EVENT_CLEANUP_WAIT_MS);
|
||||
});
|
||||
timeout?.unref?.();
|
||||
if (timeout) {
|
||||
timeout.unref?.();
|
||||
}
|
||||
return Promise.race([settled, timedOut]).then(() => {
|
||||
if (timeout) {
|
||||
clearTimeout(timeout);
|
||||
|
||||
Reference in New Issue
Block a user