summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-08-03 22:54:53 +0300
committerAlon Levy <alevy@redhat.com>2011-08-03 23:02:03 +0300
commit6862c810f311ecc5c6cc945cb8c0104415aac765 (patch)
treec7eb5954c008bb439b3eff1588cabde2437bb874
parent13e38cdba6177ba6640fb4eaf1b58e0b3355ae5d (diff)
downloadspice-6862c810f311ecc5c6cc945cb8c0104415aac765.tar.gz
spice-6862c810f311ecc5c6cc945cb8c0104415aac765.tar.xz
spice-6862c810f311ecc5c6cc945cb8c0104415aac765.zip
client/red_client: fix broken switch host migration (RHBZ 727969)
3f8d7e59dbd94b1837503f37b5065698df3ffbc7 introduced a regression, after sending one attach_channels message we never send another one. Fix by resetting on disconnect.
-rw-r--r--client/red_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index 330c6b5a..3de359da 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -538,6 +538,7 @@ void RedClient::connect(bool wait_main_disconnect)
void RedClient::disconnect()
{
_migrate.abort();
+ _msg_attach_channels_sent = false;
RedChannel::disconnect();
}