Check for expired timers even when receiving no events.
[l2tpns.git] / l2tpns.c
index 61b2184..f2a60c9 100644 (file)
--- a/l2tpns.c
+++ b/l2tpns.c
@@ -3769,6 +3769,11 @@ static void mainloop(void)
                                more++;
                        }
                }
+#ifdef BGP
+               else
+                       /* no event received, but timers could still have expired */
+                       bgp_process_peers_timers();
+#endif /* BGP */
 
                if (time_changed)
                {