… | |
… | |
1419 | else |
1419 | else |
1420 | { |
1420 | { |
1421 | // callback was invoked, but there was some activity, re-arm |
1421 | // callback was invoked, but there was some activity, re-arm |
1422 | // the watcher to fire in last_activity + 60, which is |
1422 | // the watcher to fire in last_activity + 60, which is |
1423 | // guaranteed to be in the future, so "again" is positive: |
1423 | // guaranteed to be in the future, so "again" is positive: |
1424 | w->again = timeout - now; |
1424 | w->repeat = timeout - now; |
1425 | ev_timer_again (EV_A_ w); |
1425 | ev_timer_again (EV_A_ w); |
1426 | } |
1426 | } |
1427 | } |
1427 | } |
1428 | |
1428 | |
1429 | To summarise the callback: first calculate the real timeout (defined |
1429 | To summarise the callback: first calculate the real timeout (defined |