[Spice-devel] [PATCH spice-gtk v2 11/19] migration: use spice_session_abort_migration() on error
Marc-André Lureau
marcandre.lureau at redhat.com
Thu Nov 13 15:32:34 PST 2014
Use a more complete method for the job
---
gtk/channel-main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index 5c055ed..e86fc15 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -2174,8 +2174,8 @@ static void main_migrate_connect(SpiceChannel *channel,
coroutine_yield(NULL);
if (mig.nchannels != 0) {
- reply_type = SPICE_MSGC_MAIN_MIGRATE_CONNECT_ERROR;
- spice_session_disconnect(mig.session);
+ CHANNEL_DEBUG(channel, "migrate failed: some channels failed to connect");
+ spice_session_abort_migration(session);
} else {
if (mig.do_seamless) {
SPICE_DEBUG("migration (seamless): connections all ok");
--
1.9.3
More information about the Spice-devel
mailing list