Fixes this issue:
connmand[3288]: src/ntp.c:__connman_ntp_stop()
(connmand:3288): GLib-CRITICAL **: Source ID 144 was not found when
 attempting to remove it
---
 src/ntp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/ntp.c b/src/ntp.c
index c3bef65..e72bc1a 100644
--- a/src/ntp.c
+++ b/src/ntp.c
@@ -501,8 +501,10 @@ void __connman_ntp_stop()
 {
        DBG("");
 
-       if (poll_id > 0)
+       if (poll_id > 0) {
                g_source_remove(poll_id);
+               poll_id = 0;
+       }
 
        reset_timeout();
 
-- 
1.8.3.2

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to