mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[porthole] fix unmap control flow
This commit is contained in:
parent
963e7f8393
commit
4c424cdbdf
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user