summaryrefslogtreecommitdiffstats
path: root/glib/dbus-gmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/dbus-gmain.c')
-rw-r--r--glib/dbus-gmain.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/glib/dbus-gmain.c b/glib/dbus-gmain.c
index b824f01d..046c493c 100644
--- a/glib/dbus-gmain.c
+++ b/glib/dbus-gmain.c
@@ -240,13 +240,7 @@ io_handler_dispatch (GIOChannel *source,
handler = NULL;
if (connection)
- {
- /* Dispatch messages */
- while (dbus_connection_dispatch (connection) == DBUS_DISPATCH_DATA_REMAINS)
- ;
-
- dbus_connection_unref (connection);
- }
+ dbus_connection_unref (connection);
return TRUE;
}