--- dbus-1.8.20/dbus/dbus-connection.c 2015-05-14 13:23:25.000000000 +0100 +++ x.c 2017-09-19 15:13:26.996377161 +0100 @@ -2318,6 +2318,8 @@ HAVE_LOCK_CHECK (connection); } +#include + static void complete_pending_call_and_unlock (DBusConnection *connection, DBusPendingCall *pending, @@ -2326,7 +2328,7 @@ _dbus_pending_call_set_reply_unlocked (pending, message); _dbus_pending_call_ref_unlocked (pending); /* in case there's no app with a ref held */ _dbus_connection_detach_pending_call_and_unlock (connection, pending); - +usleep(1000); /* Must be called unlocked since it invokes app callback */ _dbus_pending_call_complete (pending); dbus_pending_call_unref (pending);