summaryrefslogtreecommitdiff
path: root/heartbeatclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'heartbeatclient.c')
-rw-r--r--heartbeatclient.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/heartbeatclient.c b/heartbeatclient.c
index f02365e..26e198e 100644
--- a/heartbeatclient.c
+++ b/heartbeatclient.c
@@ -141,13 +141,12 @@ int main_loop(int serial_fd, int cmd_fd, options_t* opt)
time++;
if(time >= opt->timeout_) {
log_printf(WARNING, "timeout reached");
+ // call handler for timeout
time = 0;
}
continue;
}
- log_printf(WARNING, "select has data");
-
if(FD_ISSET(sig_fd, &tmpfds))
if(signal_handle())
return_value = 1;