commit | 5102fa96876907adca3d0897d67108c60a2545b0 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Wed Nov 18 16:23:21 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Fri Nov 27 11:15:19 2015 +0100 |
tree | 57ee64df2556e08cd7d725b9ad61e0215bfd14ae | |
parent | 0560465250d352f21e85c94d80110502b1686a6d [diff] [blame] |
Consolidate how to run the FLTK loop in one place
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index 78eadb5..fb136b5 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx
@@ -228,13 +228,7 @@ 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");