aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-26 15:54:56 +0200
committerPierre Ossman <ossman@cendio.se>2018-11-09 17:25:23 +0100
commita4308c9ec45b0ebcafaed2280b442d2840098e4e (patch)
tree243a24171e0a17131f81e12bbcb4fd1f903acc54 /win/rfb_win32
parent65e08fdc9d783a863b0d0b0acb62c9f3a6b49d63 (diff)
downloadtigervnc-a4308c9ec45b0ebcafaed2280b442d2840098e4e.tar.gz
tigervnc-a4308c9ec45b0ebcafaed2280b442d2840098e4e.zip
Get rid of SocketServer::checkTimeouts()
It doesn't belong on each socket server object as timers are global. Force implementations to call the Timer system directly instead, avoiding any middle men.
Diffstat (limited to 'win/rfb_win32')
-rw-r--r--win/rfb_win32/SocketManager.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/rfb_win32/SocketManager.cxx b/win/rfb_win32/SocketManager.cxx
index aa469e53..0092d94d 100644
--- a/win/rfb_win32/SocketManager.cxx
+++ b/win/rfb_win32/SocketManager.cxx
@@ -21,6 +21,7 @@
#include <winsock2.h>
#include <list>
#include <rfb/LogWriter.h>
+#include <rfb/Timer.h>
#include <rfb_win32/SocketManager.h>
using namespace rfb;
@@ -161,7 +162,7 @@ int SocketManager::checkTimeouts() {
std::map<HANDLE,ListenInfo>::iterator i;
for (i=listeners.begin(); i!=listeners.end(); i++)
- soonestTimeout(&timeout, i->second.server->checkTimeouts());
+ soonestTimeout(&timeout, Timer::checkTimeouts());
std::list<network::Socket*> shutdownSocks;
std::map<HANDLE,ConnInfo>::iterator j, j_next;