Explorar el Código

execute callbacks immediately for the first time

Julius Pfrommer hace 9 años
padre
commit
0116cecd8e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/ua_server_worker.c

+ 1 - 1
src/server/ua_server_worker.c

@@ -200,7 +200,7 @@ static UA_StatusCode addRepeatedJob(UA_Server *server, struct AddRepeatedJob * U
     UA_StatusCode retval = UA_STATUSCODE_GOOD;
 
     /* search for matching entry */
-    UA_DateTime firstTime = UA_DateTime_nowMonotonic() + arw->interval;
+    UA_DateTime firstTime = UA_DateTime_nowMonotonic();
     tempTw = LIST_FIRST(&server->repeatedJobs);
     while(tempTw) {
         if(arw->interval == tempTw->interval) {