From 4eeb89f54a506327ff029413ac141d79b9563f45 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Thu, 6 Oct 2011 14:00:39 +0300 Subject: [PATCH] technology: remove the pending_timeout source with g_source_remove --- src/technology.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/technology.c b/src/technology.c index 2b1763a..c6fd826 100644 --- a/src/technology.c +++ b/src/technology.c @@ -818,6 +818,7 @@ int __connman_technology_enabled(enum connman_service_type type) if (technology->pending_reply != NULL) { g_dbus_send_reply(connection, technology->pending_reply, DBUS_TYPE_INVALID); dbus_message_unref(technology->pending_reply); + g_source_remove(technology->pending_timeout); technology->pending_reply = NULL; technology->pending_timeout = 0; } @@ -908,7 +909,9 @@ int __connman_technology_disabled(enum connman_service_type type) if (technology->pending_reply != NULL) { g_dbus_send_reply(connection, technology->pending_reply, DBUS_TYPE_INVALID); dbus_message_unref(technology->pending_reply); + g_source_remove(technology->pending_timeout); technology->pending_reply = NULL; + technology->pending_timeout = 0; } if (g_atomic_int_dec_and_test(&technology->enabled) == TRUE) { -- 2.7.4