summaryrefslogtreecommitdiffstats
path: root/forward-inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'forward-inline.h')
-rw-r--r--forward-inline.h11
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?
*/