summaryrefslogtreecommitdiffstats
path: root/src/spice-channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spice-channel.c')
-rw-r--r--src/spice-channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/spice-channel.c b/src/spice-channel.c
index d8bba5c..a2a6cb9 100644
--- a/src/spice-channel.c
+++ b/src/spice-channel.c
@@ -858,6 +858,7 @@ static void spice_channel_write_msg(SpiceChannel *channel, SpiceMsgOut *out)
return;
}
+ spice_marshaller_flush(out->marshaller);
msg_size = spice_marshaller_get_total_size(out->marshaller) -
spice_header_get_header_size(channel->priv->use_mini_header);
spice_header_set_msg_size(out->header, channel->priv->use_mini_header, msg_size);