main: ensure all timers are stopped in shutdown
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 26 Feb 2016 23:48:28 +0000 (00:48 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 29 Feb 2016 19:55:29 +0000 (20:55 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/main.c

index 381ff6f..93c5c9b 100644 (file)
@@ -247,6 +247,9 @@ static void olsr_shutdown(int signo __attribute__ ((unused)))
 #endif /* __linux__ */
   }
 
+  /* stop and cleanup any remaining timers */
+  olsr_flush_timers();
+
   /* Closing plug-ins */
   olsr_close_plugins();