2006-10-01 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Sun, 1 Oct 2006 16:11:24 +0000 (16:11 +0000)
committerHavoc Pennington <hp@redhat.com>
Sun, 1 Oct 2006 16:11:24 +0000 (16:11 +0000)
commiteb1e11babd60dc618753aaceec14821526c96a14
tree467aab4ecb5e8afb7cc35b2941fc9734bdef8408
parenta2129f7cccaf0265fffe0da79ca0510b6e01131b
2006-10-01  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-bus.c
(internal_bus_get): only weak ref the connection; this means
_dbus_bus_notify_shared_connection_disconnected_unlocked can be
called safely in any context
(_dbus_bus_notify_shared_connection_disconnected_unlocked): don't
unref

* dbus/dbus-connection.c
(_dbus_connection_get_dispatch_status_unlocked): move
_dbus_bus_notify_shared_connection_disconnected_unlocked here
when queuing Disconnected instead of when the Disconnected message
arrives, so dbus_bus_get() won't return closed connections.
ChangeLog
dbus/dbus-bus.c
dbus/dbus-connection.c