Minor updates

This commit is contained in:
Adhiraj Singh
2020-12-28 11:44:02 +05:30
parent bc3cb6c178
commit 5fb9e8abed
2 changed files with 2 additions and 5 deletions

View File

@@ -215,7 +215,7 @@ export class WAConnection extends Base {
if (this.state === 'open' && json[0] === 'Pong') {
if (!json[1]) {
this.closeInternal(DisconnectReason.close)
this.unexpectedDisconnect(DisconnectReason.close)
this.logger.info('Connection terminated by phone, closing...')
return
}