gdbus: fix not handling bus disconnects
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Wed, 13 Oct 2010 12:06:46 +0000 (15:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 Oct 2010 12:54:15 +0000 (15:54 +0300)
commitfe52075aa0f7e31e25138794e46640ccd49aa3de
tree65460e958ba0e09b44c9e47a81b91f8974af0b10
parentcb3e527d1f0b58ea2f90c72ec73130fc10e6aa54
gdbus: fix not handling bus disconnects

We where not dispatching data when a bus disconnects which cause
Disconnected signal to not be processed and thus causing the process to
either not exit or to not trigger callbacks registered with
g_dbus_set_disconnect_function.

To fix this now we always schedule a dispatch which will make sure data
still not processed will make its way to the proper handlers even if
disconnected.
gdbus/mainloop.c