[Spice-devel] [PATCH spice-gtk 10/13] migration: use spice_session_abort_migration() on error
Marc-André Lureau
marcandre.lureau at redhat.com
Sun Nov 9 08:31:42 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 826b10b..18fa0a0 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