mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:50:43 +00:00
fix(google-meet): guide timeout recovery
This commit is contained in:
@@ -535,8 +535,20 @@ const waitForSpawnedProcess = async (childProcess, deps) => {
|
||||
|
||||
try {
|
||||
return await new Promise((resolve) => {
|
||||
let settled = false;
|
||||
const settle = (res) => {
|
||||
if (settled) {
|
||||
return;
|
||||
}
|
||||
settled = true;
|
||||
resolve(res);
|
||||
};
|
||||
childProcess.on("error", (error) => {
|
||||
logRunner(`Spawn failed: ${error?.message ?? String(error)}`, deps);
|
||||
settle({ exitCode: 1, exitSignal: null, forwardedSignal });
|
||||
});
|
||||
childProcess.on("exit", (exitCode, exitSignal) => {
|
||||
resolve({ exitCode, exitSignal, forwardedSignal });
|
||||
settle({ exitCode, exitSignal, forwardedSignal });
|
||||
});
|
||||
});
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user