[Spice-devel] [PATCH spice-gtk 10/13] migration: use spice_session_abort_migration() on error
Christophe Fergeau
cfergeau at redhat.com
Wed Nov 12 08:31:17 PST 2014
On Sun, Nov 09, 2014 at 05:31:42PM +0100, Marc-André Lureau wrote:
> Use a more complete method for the job
ACK
> ---
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141112/678a3ae1/attachment-0001.sig>
More information about the Spice-devel
mailing list