From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> Similar to input is_readable(), return writable after a close, so an error is reported to the async write. Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> --- src/giopipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/giopipe.c b/src/giopipe.c index efe9857..c653cb8 100644 --- a/src/giopipe.c +++ b/src/giopipe.c @@ -420,7 +420,7 @@ pipe_output_stream_is_writable (GPollableOutputStream *stream) PipeOutputStream *self = PIPE_OUTPUT_STREAM(stream); gboolean writable; - writable = self->buffer == NULL || self->peer->read >= 0; + writable = self->buffer == NULL || self->peer->read >= 0 || self->peer_closed; //g_debug("writable %p %d", self, writable); return writable; -- 2.14.0.1.geff633fa0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel