diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2016-04-14 18:01:24 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2016-04-15 13:57:23 +0200 |
commit | de5beccb0fe77fb5e1c75c7bb3bd6f4f06e66937 (patch) | |
tree | c97e85542b95272fa20af8cb0379f07c7d52aab7 | |
parent | 286044a7ca2aeee0b5fbc63774a7611bc7cc4748 (diff) |
channel-main: Move variable to block where is needed
-rw-r--r-- | src/channel-main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/channel-main.c b/src/channel-main.c index a7770fa..604f333 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -2247,17 +2247,14 @@ static void migrate_channel_event_cb(SpiceChannel *channel, SpiceChannelEvent ev { spice_migrate *mig = data; SpiceChannelPrivate *c = SPICE_CHANNEL(channel)->priv; - SpiceSession *session; g_return_if_fail(mig->nchannels > 0); g_signal_handlers_disconnect_by_func(channel, migrate_channel_event_cb, data); - session = spice_channel_get_session(mig->src_channel); - switch (event) { case SPICE_CHANNEL_OPENED: - if (c->channel_type == SPICE_CHANNEL_MAIN) { + SpiceSession *session = spice_channel_get_session(mig->src_channel); if (mig->do_seamless) { SpiceMainChannelPrivate *main_priv = SPICE_MAIN_CHANNEL(channel)->priv; |