diff options
Diffstat (limited to '')
-rw-r--r-- | forward-inline.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/forward-inline.h b/forward-inline.h index c87996d..bb8f542 100644 --- a/forward-inline.h +++ b/forward-inline.h @@ -119,6 +119,17 @@ check_inactivity_timeout (struct context *c) } #if P2MP + +static inline void +check_server_poll_timeout (struct context *c) +{ + void check_server_poll_timeout_dowork (struct context *c); + + if (c->options.server_poll_timeout + && event_timeout_trigger (&c->c2.server_poll_interval, &c->c2.timeval, ETT_DEFAULT)) + check_server_poll_timeout_dowork (c); +} + /* * Scheduled exit? */ |