[Olsr-dev] [PATCH v1 37/43] main: stop the heartbeat timer during shutdown

Ferry Huberts (spam-protected)
Wed Nov 11 17:22:10 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/main.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main.c b/src/main.c
index 430c53d..d4b4a4f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -645,6 +645,14 @@ static void olsr_shutdown(int signo __attribute__ ((unused)))
   /* remove the lock file */
   olsr_remove_lock_file();
 
+  /* stop heartbeat that is showing on stdout */
+#if !defined WINCE
+  if (heartBeatTimer) {
+    olsr_stop_timer(heartBeatTimer);
+    heartBeatTimer = NULL;
+  }
+#endif /* !defined WINCE */
+
   /* Free cookies and memory pools attached. */
   OLSR_PRINTF(0, "Free all memory...\n");
   olsr_delete_all_cookies();
-- 
2.5.0




More information about the Olsr-dev mailing list