Commit 4e971a44 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Simplify resend_expired.

parent b6262ef2
......@@ -179,9 +179,8 @@ resend_expired(struct resend *resend)
switch(resend->kind) {
case RESEND_REQUEST:
return timeval_minus_msec(&now, &resend->time) >= REQUEST_TIMEOUT;
case RESEND_UPDATE:
default:
return resend->max <= 0;
default: abort();
}
}
......
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