]> git.vomp.tv Git - vompclient.git/commitdiff
Windows udp server fix
authorChris Tallon <chris@vomp.tv>
Sat, 30 Sep 2006 19:37:25 +0000 (19:37 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 30 Sep 2006 19:37:25 +0000 (19:37 +0000)
udp.cc

diff --git a/udp.cc b/udp.cc
index 08a9d7bcd59f4e5b04ce357fa477ba9bbfa1bf64..2ff6c56878317070377400f15a81ae06fea20c30 100755 (executable)
--- a/udp.cc
+++ b/udp.cc
@@ -77,9 +77,12 @@ void UDP::threadMethod()
   int retval;
   while(1)
   {
-    log->log("UDP", Log::DEBUG, "Starting wait");
+    #ifndef WIN32
     retval = ds->waitforMessage(0);
-    log->log("UDP", Log::DEBUG, "Wait finished");
+    #else
+    threadCheckExit();
+    retval = ds->waitforMessage(1);
+    #endif
 
     if (retval == 0)
     {