General cleanup

This commit is contained in:
Adhiraj Singh
2021-01-04 21:21:43 +05:30
parent efe6bf1dd3
commit 96a6dc7e6d
5 changed files with 13 additions and 24 deletions

View File

@@ -49,7 +49,7 @@ export class WAConnection extends Base {
if (!willReconnect) throw error
}
}
result.newConnection = newConnection
if (newConnection) result.newConnection = newConnection
this.emit ('open', result)
this.logger.info ('opened connection to WhatsApp Web')