Check for expired timers even when receiving no events.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-08-08 13:43:02 +02:00
parent ae7d3c9fca
commit 500eb6e594
3 changed files with 49 additions and 26 deletions

View file

@ -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)
{