From 0554b69d82b45dade893d9407267d336c87c827b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 30 Jul 2021 22:52:16 +0200 Subject: [PATCH] reset _total_reconnects on open. --- 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 709de7f9..6f8875c0 100644 --- a/src/component/internal/reconnector/index.ts +++ b/src/component/internal/reconnector/index.ts @@ -123,6 +123,7 @@ export class Reconnector extends EventEmitter { if (!this._open) { this._open = true + this._total_reconnects = 0 this.emit('open') }