diff options
Diffstat (limited to 'migration-unix.c')
-rw-r--r-- | migration-unix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/migration-unix.c b/migration-unix.c index b7aab3843a..ce59a2a9e8 100644 --- a/migration-unix.c +++ b/migration-unix.c @@ -176,13 +176,12 @@ static void unix_accept_incoming_migration(void *opaque) qemu_announce_self(); DPRINTF("successfully loaded vm state\n"); - /* we've successfully migrated, close the server socket */ - qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL); - close(s); out_fopen: qemu_fclose(f); out: + qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL); + close(s); close(c); } |