fix(gmail-watcher): strip listeners from old process after settleProc… · openclaw/openclaw@0a38932
SebTardif
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -301,6 +301,10 @@ export async function startGmailWatcher(
|
301 | 301 | const oldProcess = watcherProcess; |
302 | 302 | watcherProcess = null; |
303 | 303 | await settleProcess(oldProcess); |
| 304 | +// Remove lingering spawnGogServe listeners so a late exit (after the |
| 305 | +// settleProcess timeout) cannot trigger a duplicate respawn while |
| 306 | +// watcherProcess is null and shuttingDown is false. |
| 307 | +oldProcess.removeAllListeners(); |
304 | 308 | } |
305 | 309 | shuttingDown = false; |
306 | 310 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。