summaryrefslogtreecommitdiff
path: root/gtk/spice-session.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2012-04-23 17:32:19 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2012-04-24 12:41:41 +0200
commitd41a57e35224dba943912ee2bd5fef5553de0f85 (patch)
tree3be4ba424353965df99abb3a7cd7fd8c0fa3dfa4 /gtk/spice-session.c
parent50add15ef69cde34346e11b5c91e1257cecb2696 (diff)
Lower a few warnings when migration fails
Diffstat (limited to 'gtk/spice-session.c')
-rw-r--r--gtk/spice-session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index 38a1e92..959e099 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -1258,7 +1258,11 @@ void spice_session_abort_migration(SpiceSession *session)
struct channel *c;
g_return_if_fail(s != NULL);
- g_return_if_fail(s->migration != NULL);
+
+ if (s->migration == NULL) {
+ SPICE_DEBUG("no migration in progress");
+ return;
+ }
for (ring = ring_get_head(&s->channels);
ring != NULL; ring = next) {