From 5102fa96876907adca3d0897d67108c60a2545b0 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 18 Nov 2015 16:23:21 +0100 Subject: Consolidate how to run the FLTK loop in one place --- vncviewer/CConn.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'vncviewer/CConn.cxx') diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index 78eadb54..fb136b5f 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -228,13 +228,7 @@ const char *CConn::connectionInfo() void CConn::blockCallback() { - int next_timer; - - next_timer = Timer::checkTimeouts(); - if (next_timer == 0) - next_timer = INT_MAX; - - Fl::wait((double)next_timer / 1000.0); + run_mainloop(); if (should_exit()) throw rdr::Exception("Termination requested"); -- cgit v1.2.3