From f483e3153a123444fe8a5a43ffe9c592a21f6e3b Mon Sep 17 00:00:00 2001 From: Alex Kit Date: Fri, 26 Feb 2021 11:07:03 +0100 Subject: [PATCH] fix (client retry) check if explicitly disconnected --- dao/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dao/client.js b/dao/client.js index 32ec646..fc5e383 100644 --- a/dao/client.js +++ b/dao/client.js @@ -188,6 +188,9 @@ function connect(){ setTimeout( function retryTimeout(){ + if (client.explicitlyDisconnected) { + return; + } client.retriesRemaining--; client.connect(); }.bind(null,client),