diff options
Diffstat (limited to 'glib/dbus-gmain.c')
-rw-r--r-- | glib/dbus-gmain.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/glib/dbus-gmain.c b/glib/dbus-gmain.c index b00320f2..3a90ee3d 100644 --- a/glib/dbus-gmain.c +++ b/glib/dbus-gmain.c @@ -153,7 +153,7 @@ dbus_gsource_dispatch (GSource *source, GList *copy, *list; /* We need to traverse a copy of the list, since it can change in - dbus_connect_handle_watch. */ + dbus_watch_handle(). */ copy = g_list_copy (dbus_source->poll_fds); list = copy; @@ -175,12 +175,7 @@ dbus_gsource_dispatch (GSource *source, if (poll_fd->revents & G_IO_HUP) condition |= DBUS_WATCH_HANGUP; - if (is_server) - dbus_server_handle_watch (dbus_source->connection_or_server, - watch, condition); - else - dbus_connection_handle_watch (dbus_source->connection_or_server, - watch, condition); + dbus_watch_handle (watch, condition); } list = list->next; |