Skip to content

Commit

Permalink
fr_event_timer_insert returns -1 on error
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 15, 2017
1 parent 3514da4 commit 7673af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -5079,7 +5079,7 @@ static void sd_watchdog_event(struct timeval *now, UNUSED void *ctx)

memcpy(&when, now, sizeof(when));
tv_add(&when, sd_watchdog_interval / 2);
if (!fr_event_timer_insert(el, sd_watchdog_event, NULL, &when, &sd_watchdog_ev)) {
if (fr_event_timer_insert(el, sd_watchdog_event, NULL, &when, &sd_watchdog_ev) < 0) {
rad_panic("Failed to insert watchdog event");
}
}
Expand Down

0 comments on commit 7673af5

Please sign in to comment.