mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 841984 - Check both return value and pending_call, r=qdot
This commit is contained in:
parent
671a02ca24
commit
7e8f0d60ac
@ -95,7 +95,11 @@ dbus_bool_t dbus_func_send_async(DBusConnection *conn,
|
||||
reply = dbus_connection_send_with_reply(conn, msg,
|
||||
&call,
|
||||
timeout_ms);
|
||||
if (!reply) {
|
||||
/**
|
||||
* dbus_connection_send_with_reply() may return TRUE but leave *pending_return
|
||||
* as NULL, we'd better to check both reply value and return DBusPendingCall.
|
||||
*/
|
||||
if (!reply || !call) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user