_g_dbus_worker_flush_sync: always flush if we need to
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 17:20:52 +0000 (17:20 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 18:12:30 +0000 (18:12 +0000)
commitbae9928246d5104e1d73a60dd66bfbc45740d640
tree51125d4aa64238be26a16532559c6b6d79694141
parentf41178c6c79a00a1fb3a99bc3ae7c88a85c833fc
_g_dbus_worker_flush_sync: always flush if we need to

We didn't previously flush in a couple of cases where we should have
done:

* a write is running when flush is called: we should flush after it
  finishes

* writes have been made since the last flush, but none are pending or
  running right now: we should flush the underlying transport straight
  away

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
gio/gdbusprivate.c