mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Close disconnect fix
This commit is contained in:
@@ -278,6 +278,7 @@ export default class WAConnectionBase {
|
||||
close() {
|
||||
this.msgCount = 0
|
||||
if (this.conn) {
|
||||
this.conn.removeAllListeners ('close')
|
||||
this.conn.close()
|
||||
this.conn = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user