From 1e78e4e191aa31334ff3d28d8b61b45f8ff63bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 30 Jul 2021 22:34:44 +0200 Subject: [PATCH] reset _total_reconnects. --- src/component/internal/reconnector/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/internal/reconnector/index.ts b/src/component/internal/reconnector/index.ts index 64e15bb5..91f73b36 100644 --- a/src/component/internal/reconnector/index.ts +++ b/src/component/internal/reconnector/index.ts @@ -68,6 +68,7 @@ export class Reconnector extends EventEmitter { if (this._open) { this._last_connected = new Date() + this._total_reconnects = 0 this.emit('connect') } else { this._conn.disconnect()