diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c index ea902c6de..aee54498c 100644 --- a/gio/gdbusprivate.c +++ b/gio/gdbusprivate.c @@ -704,7 +704,11 @@ _g_dbus_worker_do_read_cb (GInputStream *input_stream, if (bytes_read == -1) { - _g_dbus_worker_emit_disconnected (worker, TRUE, error); + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + _g_dbus_worker_emit_disconnected (worker, FALSE, NULL); + else + _g_dbus_worker_emit_disconnected (worker, TRUE, error); + g_error_free (error); goto out; }