From 579bcb925a15b2e15934bff798d84fb1d62081f5 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Mon, 20 Aug 2012 15:43:52 +0300 Subject: [PATCH] service: Always zero the timeout id when timer triggers The timer id was not cleared in case the signal creation failed. --- src/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index d519c73..e2fa389 100644 --- a/src/service.c +++ b/src/service.c @@ -4068,6 +4068,8 @@ static gboolean service_send_changed(gpointer data) DBG(""); + services_notify->id = 0; + signal = dbus_message_new_signal(CONNMAN_MANAGER_PATH, CONNMAN_MANAGER_INTERFACE, "ServicesChanged"); if (signal == NULL) @@ -4090,7 +4092,6 @@ static gboolean service_send_changed(gpointer data) g_hash_table_remove_all(services_notify->remove); g_hash_table_remove_all(services_notify->add); - services_notify->id = 0; return FALSE; } -- 2.7.4