]> Git Repo - qemu.git/blobdiff - qemu-nbd.c
nbd: Fully initialize client in case of failed negotiation
[qemu.git] / qemu-nbd.c
index f60842fd863ca63e581101d923d8372c7f9f4fbf..651f85ecc1f0dfaa39c982164bbbf68b49692315 100644 (file)
@@ -325,7 +325,7 @@ out:
 
 static int nbd_can_accept(void)
 {
-    return nb_fds < shared;
+    return state == RUNNING && nb_fds < shared;
 }
 
 static void nbd_export_closed(NBDExport *exp)
This page took 0.022943 seconds and 4 git commands to generate.