@meetlobster/openclaw-plugin 1.3.15 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -232,12 +232,12 @@ class LobsterService {
|
|
|
232
232
|
return;
|
|
233
233
|
this.logger.info("Orphaned worker detected on port, sending stop", { port: this.config.workerPort });
|
|
234
234
|
await this.sendStopRequest("plugin-reinit");
|
|
235
|
-
// Wait for port to free up (up to
|
|
236
|
-
const deadline = Date.now() +
|
|
235
|
+
// Wait for port to free up (up to 8 seconds).
|
|
236
|
+
const deadline = Date.now() + 8_000;
|
|
237
237
|
while (Date.now() < deadline) {
|
|
238
238
|
if (!await this.isPortReachable(this.config.workerHost, this.config.workerPort))
|
|
239
239
|
return;
|
|
240
|
-
await sleep(
|
|
240
|
+
await sleep(500);
|
|
241
241
|
}
|
|
242
242
|
this.logger.warn("Orphaned worker did not stop in time, proceeding anyway");
|
|
243
243
|
}
|