summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorsecret_online <me+github@secretonline.co>2016-01-24 09:16:33 +1300
committersecret_online <me+github@secretonline.co>2016-01-24 09:16:33 +1300
commitf2833e5d964fb38d79805de3908f153a9314ee6c (patch)
tree4ffc5da71456265a4d5b505558bb9986123b7c89
parentBeautify with JS Beautify (diff)
downloadshulker-f2833e5d964fb38d79805de3908f153a9314ee6c.tar.gz
shulker-f2833e5d964fb38d79805de3908f153a9314ee6c.zip
Reconnect RCON on error
Added 10s delay inbetween connections
-rw-r--r--index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.js b/index.js
index aae741b..fba3da4 100644
--- a/index.js
+++ b/index.js
@@ -20,6 +20,11 @@ client.on("auth", function() {
     }
 }).on("end", function() {
     console.log("[INFO] Rcon closed!");
+}).on("error", function() {
+    client.disconnect();
+    setTimeout(function() {
+        client.connect();
+    }, 10000);
 });
 
 client.connect();
mit/home/.config/X/resources?id=b9f26fe852fb0b98c272257c6045cf795f0b5e37&follow=1'>Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe