Commit 3202beca authored by Orit Wasserman's avatar Orit Wasserman Committed by Anthony Liguori
Browse files

Clear handler only for valid fd

parent 233aa5c2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -240,7 +240,9 @@ static int migrate_fd_cleanup(MigrationState *s)
{
    int ret = 0;

    if (s->fd != -1) {
        qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
    }

    if (s->file) {
        DPRINTF("closing file\n");