mirror of git://git.sysmocom.de/ofono
bluez5: fix crash on DBus transport disconnection
Do not register dbus notification if message failed to be sent out because transport was already disconnected
This commit is contained in:
parent
5a6fe84ec0
commit
de58109933
|
@ -155,8 +155,10 @@ void bt_unregister_profile(DBusConnection *conn, const char *object)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c) {
|
||||||
dbus_pending_call_set_notify(c, unregister_profile_cb, NULL, NULL);
|
dbus_pending_call_set_notify(c, unregister_profile_cb, NULL, NULL);
|
||||||
dbus_pending_call_unref(c);
|
dbus_pending_call_unref(c);
|
||||||
|
}
|
||||||
|
|
||||||
dbus_message_unref(msg);
|
dbus_message_unref(msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue