Explorar o código

small simplification in the timout handling

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
df11023b6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/ua_server_worker.c

+ 1 - 1
src/server/ua_server_worker.c

@@ -600,7 +600,7 @@ UA_UInt16 UA_Server_run_iterate(UA_Server *server, UA_Boolean waitInternal) {
     UA_DateTime nextRepeated = processRepeatedJobs(server, now);
     UA_DateTime nextRepeated = processRepeatedJobs(server, now);
 
 
     UA_UInt16 timeout = 0;
     UA_UInt16 timeout = 0;
-    if(waitInternal && nextRepeated > now)
+    if(waitInternal)
         timeout = (UA_UInt16)((nextRepeated - now) / UA_MSEC_TO_DATETIME);
         timeout = (UA_UInt16)((nextRepeated - now) / UA_MSEC_TO_DATETIME);
 
 
     /* Get work from the networklayer */
     /* Get work from the networklayer */