fix: Fixed reconnect with pairing code or qrcode

This commit is contained in:
Davidson Gomes
2023-07-24 18:21:11 -03:00
parent 7d6a130cf9
commit f7293255cf
3 changed files with 11 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ export class InstanceController {
if (qrcode) {
this.logger.verbose('creating qrcode');
await instance.connectToWhatsapp(number);
await delay(3000);
await delay(5000);
getQrcode = instance.qrCode;
}
@@ -214,7 +214,7 @@ export class InstanceController {
this.logger.verbose('connecting');
await instance.connectToWhatsapp(number);
await delay(2000);
await delay(5000);
return instance.qrCode;
}