diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2011-10-06 14:00:39 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-06 13:24:24 +0200 |
commit | 4eeb89f54a506327ff029413ac141d79b9563f45 (patch) | |
tree | e3725bb59756cb618a516764a632190dfd68eecf /src/technology.c | |
parent | b0e29168ce7dd6f9e74546651d8568e3706c87d1 (diff) | |
download | connman-4eeb89f54a506327ff029413ac141d79b9563f45.tar.gz connman-4eeb89f54a506327ff029413ac141d79b9563f45.tar.bz2 connman-4eeb89f54a506327ff029413ac141d79b9563f45.zip |
technology: remove the pending_timeout source with g_source_remove
Diffstat (limited to 'src/technology.c')
-rw-r--r-- | src/technology.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c index 2b1763a1..c6fd8265 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) { |