diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-05 15:57:44 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:07 +0300 |
commit | 3af4b7235d23e9d0be2da780d5da9b3fcb29466f (patch) | |
tree | ed5003644f97db35ac29a57791651c0f5180cd4b /server/red_channel.c | |
parent | c617379821feb0c2cf990394163765498ae1bda1 (diff) | |
download | spice-3af4b7235d23e9d0be2da780d5da9b3fcb29466f.tar.gz spice-3af4b7235d23e9d0be2da780d5da9b3fcb29466f.tar.xz spice-3af4b7235d23e9d0be2da780d5da9b3fcb29466f.zip |
main: send MSG_MIGRATE upon vm migration completion
Before sending the above msg, if there is a pending partial msg that
has been read from the agent, we send it to the client. The alternative
was to keep the msg as part of the migration data, and then
to send it to the destination server via the client and to wait there
for the msg chunk completion, before sending it to the client. Of
course, the latter is less efficient.
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 16335a32..803804e1 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -901,7 +901,7 @@ RedChannel *red_channel_create_parser(int size, void red_channel_register_client_cbs(RedChannel *channel, ClientCbs *client_cbs) { - spice_assert(client_cbs->connect); + spice_assert(client_cbs->connect || channel->type == SPICE_CHANNEL_MAIN); channel->client_cbs.connect = client_cbs->connect; if (client_cbs->disconnect) { |