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)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 9 Jun 2010 10:28:15 +0000 (12:28 +0200)
commit81656e679be3d1c51fee935d52fbc6e8748fdbef
treeecbd14f92099ac3488064c85e87ec8bf56dfab07
parentcd815c347a279f324e5025fcda71a16ad9b08c7d
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