GDBusWorker: move flush async op into continue_writing()
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 17:18:01 +0000 (17:18 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Nov 2011 18:10:11 +0000 (18:10 +0000)
commitf41178c6c79a00a1fb3a99bc3ae7c88a85c833fc
tree20bc9fdd0aee357f47be48c27718b939245a5866
parent301332168b096e8c64e26932e2a02bd24fafdbab
GDBusWorker: move flush async op into continue_writing()

This makes it easier to schedule a flush, by putting it on the same code
path as writing and closing.

Also change message_written to expect the lock to be held, since all
that's left in that function either wants to hold the lock or doesn't
care, and it's silly to release the lock immediately before calling
message_written, which just takes it again.

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