mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[porthole] fix unmap control flow
This commit is contained in:
parent
963e7f8393
commit
4c424cdbdf
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue