aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-06-24 18:48:27 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-06-24 19:37:39 +0200
commit08ef3c81da88257ffe9c8208275e59d455ba1234 (patch)
tree046e5be070eed2490271194e8f996233b9d30c91 /src
parent19bd63ecfd02c02148e4efeab0a0b7a0476abac1 (diff)
broadband-modem-mbim: fix notification signal handling
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem-mbim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 1ec3fbca..f7dbd9b8 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -1824,9 +1824,10 @@ common_setup_cleanup_unsolicited_events (MMBroadbandModemMbim *self,
/* Don't remove the signal if there are still listeners interested */
if (self->priv->setup_flags == PROCESS_NOTIFICATION_FLAG_NONE &&
self->priv->notification_id &&
- g_signal_handler_is_connected (device, self->priv->notification_id))
+ g_signal_handler_is_connected (device, self->priv->notification_id)) {
g_signal_handler_disconnect (device, self->priv->notification_id);
- self->priv->notification_id = 0;
+ self->priv->notification_id = 0;
+ }
}
g_simple_async_result_complete_in_idle (result);