Commit 6a2bdc4e authored by Thiago Macieira's avatar Thiago Macieira Committed by Oswald Buddenhagen
Browse files

Always lock the DBus dispatcher before dbus_connection_send*


We lock it before dbus_connection_send_with_reply (the async version) in
QDBusConnectionPrivate::sendWithReplyAsync. We weren't locking it before
send_with_reply_and_block and we apparently should. The locking around
the dbus_connection_send function might not be necessary, but let's do
it to be safe.

The lock now needs to be recursive because we may be inside
QDBusConnectionPrivate::doDispatch.

Task-number: QTBUG-42189
Change-Id: I7b6b350909359817ea8b3f9c693bced042c9779a
Reviewed-by: default avatarJędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>
parent 54d4fb4f
No related merge requests found
Showing with 18 additions and 4 deletions
Supports Markdown
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