2
2
mirror of https://github.com/m1k1o/neko.git synced 2024-07-24 14:40:50 +12:00

reset _total_reconnects.

This commit is contained in:
Miroslav Šedivý 2021-07-30 22:34:44 +02:00
parent 7be220c2d2
commit 1e78e4e191

@ -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()