@lightcone-ai/daemon 0.9.13 → 0.9.14
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.
- package/package.json +1 -1
- package/src/xhs-login.js +3 -3
package/package.json
CHANGED
package/src/xhs-login.js
CHANGED
|
@@ -70,10 +70,10 @@ export class XhsLoginSession {
|
|
|
70
70
|
this._stopTimers();
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
// Poll for CDP readiness
|
|
73
|
+
// Poll for CDP readiness (up to 15s)
|
|
74
74
|
let ready = false;
|
|
75
|
-
for (let i = 0; i <
|
|
76
|
-
await sleep(
|
|
75
|
+
for (let i = 0; i < 30; i++) {
|
|
76
|
+
await sleep(500);
|
|
77
77
|
try {
|
|
78
78
|
await httpGet(`http://localhost:${CDP_PORT}/json/version`);
|
|
79
79
|
ready = true;
|