nbd: fix nbd_server_stop crash when no server was running
commitfc6467eaf22f974620b5dd046afca04e619f9be9
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 13:12:54 +0000 (12 14:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 13:38:29 +0000 (12 14:38 +0100)
tree82b2d9ef560b8121dc721cc3447dbb0f2ce73d80
parent1d7d2a9d2191c34bd1ad69b420db9b47faa3fb8c
nbd: fix nbd_server_stop crash when no server was running

This failed on the new assertion of qemu_set_fd_handler2:

qemu-system-x86_64: /home/pbonzini/work/upstream/qemu/iohandler.c:60: qemu_set_fd_handler2: Assertion `fd >= 0' failed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
blockdev-nbd.c