Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/319985

Change subject: Add setInterval to ssh close for startRelay()
......................................................................

Add setInterval to ssh close for startRelay()

Change-Id: I5cc2067d90e270fe667227895caeea499bce5323
---
M src/relay.js
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/grrrit 
refs/changes/85/319985/1

diff --git a/src/relay.js b/src/relay.js
index 0cdb053..3d135ef 100644
--- a/src/relay.js
+++ b/src/relay.js
@@ -52,7 +52,8 @@
         console.log('Client error: ' + err);
     }).on('close', function() {
         console.log('Client disconnected');
-        startRelay();
+        setInterval(startRelay, 10000);
+        console.log('Client re-connected');
     }).connect({
         host: host,
         port: port,

-- 
To view, visit https://gerrit.wikimedia.org/r/319985
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5cc2067d90e270fe667227895caeea499bce5323
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/grrrit
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to