Corrected thread problem causing some calls to hang for 25s
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>
Wed, 9 Jun 2010 09:58:06 +0000 (11:58 +0200)
committerThiago Macieira <thiago@kde.org>
Fri, 11 Jun 2010 12:18:55 +0000 (14:18 +0200)
commit882a2e11a9ea41ce3704c23cc60875fcbe00caf3
tree35f34c7e20430fe3b894136b6c4d8e0c60ebe5e7
parent82a77d6acb0b484a0f21180ad6b8a9b879a54197
Corrected thread problem causing some calls to hang for 25s

Since the connection lock is released for a short while in
_dbus_connection_acquire_io_path there can already be a method return
received by another thread. The fix is to do an extra check after the
I/O path has been aquired both.

Approved-by: Thiago Macieira
dbus/dbus-connection-internal.h
dbus/dbus-connection.c