@open-wa/wa-automate 4.59.0 → 4.59.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.js +1 -1
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
@@ -305,7 +305,7 @@ class Client {
|
|
305
305
|
* Wait for internal session to load earlier messages
|
306
306
|
*/
|
307
307
|
logging_1.log.info('Waiting for internal session to finish syncing');
|
308
|
-
const syncT = yield (0, tools_1.timePromise)(() => this._page.waitForFunction(() => WAPI.isSessionLoaded(), { timeout: 20000, polling: 'mutation' }));
|
308
|
+
const syncT = yield (0, tools_1.timePromise)(() => this._page.waitForFunction(() => WAPI.isSessionLoaded(), { timeout: 20000, polling: 'mutation' })).catch(() => 20001);
|
309
309
|
logging_1.log.info(`Internal session finished syncing in ${syncT}ms`);
|
310
310
|
if ((_a = this._createConfig) === null || _a === void 0 ? void 0 : _a.eventMode) {
|
311
311
|
yield this.registerAllSimpleListenersOnEv();
|
package/package.json
CHANGED