From 4197dd2e70bd9b13500fb700a841e8cfe478ed5b Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 11 Dec 2016 12:43:51 +0100 Subject: 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 --- src/mm-bearer-qmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2