@open-wa/wa-automate 4.59.0 → 4.59.1
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/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