GDBusWorker: distinguish between 3 sorts of output that might be pending
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 17:14:55 +0000 (17:14 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 17:21:35 +0000 (17:21 +0000)
commit18482ab17ef5abe3b41bf0f6a076546ff1a5b28e
treeb288138ab87b9ab154d9139aa22d5fd7b760a225
parenta795e563dfec28842846700d30360acaff9699e3
GDBusWorker: distinguish between 3 sorts of output that might be pending

If the user calls flush_sync() with no messages in the queue, but an
async write call pending, then we ought to flush after that async write
returns (although we don't currently do that). If it was an async close
or flush that was pending, there's no need to flush (again) afterwards.
So, we need to distinguish.

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