From: Sergey Fedorov <s.fedo...@samsung.com>

Do not return after net_hub_flush(). Always flush callee network client
incoming queue.

Signed-off-by: Sergey Fedorov <s.fedo...@samsung.com>
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
---
 net/net.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/net.c b/net/net.c
index 870d3bb..0a88e68 100644
--- a/net/net.c
+++ b/net/net.c
@@ -443,7 +443,6 @@ void qemu_flush_queued_packets(NetClientState *nc)
         if (net_hub_flush(nc->peer)) {
             qemu_notify_event();
         }
-        return;
     }
     if (qemu_net_queue_flush(nc->incoming_queue)) {
         /* We emptied the queue successfully, signal to the IO thread to repoll
-- 
1.8.3.1


Reply via email to