From b58afafbe3e55386bb6f1a339fa117d872cd8602 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 17:31:32 +0100 Subject: Correctly track connected state variable --- ratatox.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3