aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-12-11 12:43:51 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-12-11 12:45:09 +0100
commit4197dd2e70bd9b13500fb700a841e8cfe478ed5b (patch)
treee395787148292bf3f7603eb7463b0ffc3512a4b0
parent905c8a48e96350af002536b627b46fbf517f727c (diff)
bearer-qmi: signal id may be 0 even if enable == FALSE
E.g. if the connection attempt fails, connect_context_complete_and_free() may be called before the signals are connected to the QmiClients. https://bugs.freedesktop.org/show_bug.cgi?id=99047
-rw-r--r--src/mm-bearer-qmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index 40bfa8cb..a886ef96 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -821,8 +821,7 @@ common_setup_cleanup_unsolicited_events (MMBearerQmi *self,
"packet-service-status",
G_CALLBACK (packet_service_status_indication_cb),
self);
- } else {
- g_assert (*indication_id != 0);
+ } else if (*indication_id != 0) {
g_signal_handler_disconnect (client, *indication_id);
*indication_id = 0;
}