From 4c424cdbdf800fe16bb52f8d5de06f8ef2192e2f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 5 Nov 2019 01:30:33 +1100 Subject: [PATCH] [porthole] fix unmap control flow --- porthole/src/linux/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/porthole/src/linux/client.c b/porthole/src/linux/client.c index 121803f7..535cec0f 100644 --- a/porthole/src/linux/client.c +++ b/porthole/src/linux/client.c @@ -268,7 +268,6 @@ static void * porthole_socket_thread(void * opaque) break; } } - break; // reply to the guest to allow it to continue uint32_t reply = PH_MSG_UNMAP; @@ -278,10 +277,12 @@ static void * porthole_socket_thread(void * opaque) if (sendmsg(handle->socket, &msghdr, 0) < 0) { DEBUG_ERROR("Failed to respond to the guest"); + handle->running = false; if (handle->discon_cb) handle->discon_cb(); - break; } + + break; } } }