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 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/ntp.c b/src/ntp.c
index c3bef65..b4fe63a 100644
--- a/src/ntp.c
+++ b/src/ntp.c
@@ -218,8 +218,10 @@ static gboolean next_poll(gpointer user_data)
static void reset_timeout(void)
{
- if (timeout_id > 0)
+ if (timeout_id > 0) {
g_source_remove(timeout_id);
+ timeout_id = 0;
+ }
retries = 0;
}
@@ -501,8 +503,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