Commit 03a700eb authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Avoid calling do_resend when resend_time is never.

parent 63decb89
......@@ -669,8 +669,10 @@ main(int argc, char **argv)
}
}
if(resend_time.tv_sec != 0) {
if(timeval_compare(&now, &resend_time) >= 0)
do_resend();
}
if(update_flush_timeout.tv_sec != 0) {
if(timeval_compare(&now, &update_flush_timeout) >= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment