qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 03/36] migration: Check that migration is active bef


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 03/36] migration: Check that migration is active before cancel it
Date: Tue, 11 Oct 2011 12:00:23 +0200

Signed-off-by: Juan Quintela <address@hidden>
---
 migration.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/migration.c b/migration.c
index 7fd6c23..71b8aad 100644
--- a/migration.c
+++ b/migration.c
@@ -133,9 +133,9 @@ int do_migrate_cancel(Monitor *mon, const QDict *qdict, 
QObject **ret_data)
 {
     MigrationState *s = current_migration;

-    if (s)
+    if (s && s->get_status(s) == MIG_STATE_ACTIVE) {
         s->cancel(s);
-
+    }
     return 0;
 }

-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]