Skip to content

Commit

Permalink
Merge branch 'master' into add-code-of-conduct-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 8, 2017
2 parents e96834c + 00dcc1e commit 90e4064
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ua_timer.c
Expand Up @@ -337,7 +337,10 @@ UA_Timer_process(UA_Timer *t, UA_DateTime nowMonotonic,
processChanges(t);

/* Return timestamp of next repetition */
return SLIST_FIRST(&t->repeatedCallbacks)->nextTime;
tc = SLIST_FIRST(&t->repeatedCallbacks);
if(!tc)
return UA_INT64_MAX; /* Main-loop has a max timeout / will continue earlier */
return tc->nextTime;
}

void
Expand Down

0 comments on commit 90e4064

Please sign in to comment.