Commit 30f8a38b authored by Manish Narang's avatar Manish Narang Committed by Simon McVittie
Browse files

DBusConnection: Pass a pending call around more often

If a pending call is provided, _dbus_connection_do_iteration_unlocked
checks whether it has completed or has a reply ready as soon as it
acquires the I/O path. If that's the case, then the iteration
terminates without trying to carry out I/O, so that the pending call
can be dispatched immediately, without blocking until a timeout is
reached. This change is believed to be necessary, but not sufficient,
to resolve #102839.

Based on part of a patch from Michael Searle on
Commit message added by Simon McVittie.


Reviewed-by: Simon McVittie's avatarSimon McVittie <>
parent cd97bcd6
......@@ -2527,7 +2527,7 @@ _dbus_connection_block_pending_call (DBusPendingCall *pending)
/* block again, we don't have the reply buffered yet. */
_dbus_connection_do_iteration_unlocked (connection,
timeout_milliseconds - elapsed_milliseconds);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment