From 5ed212550926fff6f9af2eed6e36da77055af9d3 Mon Sep 17 00:00:00 2001 From: Alex Van Camp Date: Fri, 4 Aug 2017 20:20:20 -0500 Subject: [PATCH] fix(nodecg-utility-obs): fix the previous commit not actually doing anything except logspam --- packages/nodecg-utility-obs/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nodecg-utility-obs/index.js b/packages/nodecg-utility-obs/index.js index 19394aa..a9100e8 100644 --- a/packages/nodecg-utility-obs/index.js +++ b/packages/nodecg-utility-obs/index.js @@ -147,6 +147,7 @@ class OBSUtility extends OBSWebSocket { setInterval(() => { if (websocketConfig.value && websocketConfig.value.status === 'connected' && !this._connected) { log.warn('Thought we were connected, but the automatic poll detected we were not. Correcting.'); + clearInterval(this._reconnectInterval); this._reconnectToOBS(); } }, 1000);