regen QR call rejectPending

This commit is contained in:
Adhiraj Singh
2020-10-28 22:20:55 +05:30
parent 0a56406da3
commit 57c46e3122
2 changed files with 3 additions and 3 deletions

View File

@@ -341,7 +341,7 @@ export class WAConnection extends Base {
this.logger.debug({ unhandled: true }, messageTag + ',' + JSON.stringify(json))
}
} catch (error) {
this.logger.error ({ error }, `encountered error in decrypting message, closing`)
this.logger.error ({ error }, `encountered error in decrypting message, closing: ${error}`)
if (this.state === 'open') this.unexpectedDisconnect (DisconnectReason.badSession)
else this.rejectPendingConnection (new Error(DisconnectReason.badSession))