summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 17:31:32 +0100
committersin <sin@2f30.org>2014-09-15 17:31:32 +0100
commitb58afafbe3e55386bb6f1a339fa117d872cd8602 (patch)
tree5aaa9e95633166efb788b6a0697cc738accee727
parentd448c53cee34d5ffe173949122cda30284339e5e (diff)
Correctly track connected state variable
-rw-r--r--ratatox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratatox.c b/ratatox.c
index 437110e..87b2b47 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -763,6 +763,7 @@ loop(void)
connected = 1;
}
} else {
+ connected = 0;
t1 = time(NULL);
if (t1 > t0 + 5) {
t0 = time(NULL);