broadband-modem-mbim: fix notification signal handling
This commit is contained in:
@@ -1824,10 +1824,11 @@ common_setup_cleanup_unsolicited_events (MMBroadbandModemMbim *self,
|
|||||||
/* Don't remove the signal if there are still listeners interested */
|
/* Don't remove the signal if there are still listeners interested */
|
||||||
if (self->priv->setup_flags == PROCESS_NOTIFICATION_FLAG_NONE &&
|
if (self->priv->setup_flags == PROCESS_NOTIFICATION_FLAG_NONE &&
|
||||||
self->priv->notification_id &&
|
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);
|
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);
|
g_simple_async_result_complete_in_idle (result);
|
||||||
g_object_unref (result);
|
g_object_unref (result);
|
||||||
|
Reference in New Issue
Block a user