mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-11 07:12:40 +02:00
reset _total_reconnects.
This commit is contained in:
parent
7be220c2d2
commit
1e78e4e191
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
|
|||
|
||||
if (this._open) {
|
||||
this._last_connected = new Date()
|
||||
this._total_reconnects = 0
|
||||
this.emit('connect')
|
||||
} else {
|
||||
this._conn.disconnect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue