From 98206d4e6b719f650b0f2d23bcd4bab83c624341 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 18 Oct 2016 12:24:03 +0300 Subject: tests/vhost-user-bridge: do not accept more than one connection Signed-off-by: Marc-André Lureau Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/vhost-user-bridge.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 97e45d8be8..5b618f670a 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -1200,6 +1200,7 @@ vubr_accept_cb(int sock, void *ctx) } DPRINT("Got connection from remote peer on sock %d\n", conn_fd); dispatcher_add(&dev->dispatcher, conn_fd, ctx, vubr_receive_cb); + dispatcher_remove(&dev->dispatcher, sock); } static VubrDev * -- cgit v1.2.3-55-g7522