aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-03 09:24:51 +0100
committerPierre Ossman <ossman@cendio.se>2024-06-19 16:39:07 +0200
commitbf286837db638a67bde0ab9be0baa621f863b8d5 (patch)
treeab74492ab53922a216b338a1f1f84312439552d4 /vncviewer
parent37cf0ffaba7f4e855a909f57adf72da43c0ac275 (diff)
downloadtigervnc-bf286837db638a67bde0ab9be0baa621f863b8d5.tar.gz
tigervnc-bf286837db638a67bde0ab9be0baa621f863b8d5.zip
Stop treating "0" as "no timeouts"
It is much more sane to treat "0" as "a timer is ready NOW", so let's change to using -1 as the invalid timeout value.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/vncviewer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 6eebf3d0..a5604f76 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -189,7 +189,7 @@ static void mainloop(const char* vncserver, network::Socket* sock)
int next_timer;
next_timer = Timer::checkTimeouts();
- if (next_timer == 0)
+ if (next_timer < 0)
next_timer = INT_MAX;
if (Fl::wait((double)next_timer / 1000.0) < 0.0) {