Skip to content

Commit

Permalink
This should fix bug CORE-6488 : Event delivery could be missed when l…
Browse files Browse the repository at this point in the history
…ocal (XNET) protocol is used
  • Loading branch information
hvlad committed Feb 15, 2021
1 parent 74d9f68 commit 197615c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remote/os/win32/xnet.cpp
Expand Up @@ -902,7 +902,7 @@ static rem_port* aux_request(rem_port* port, PACKET* packet)
endPoint->make_event_name(name_buffer, sizeof(name_buffer), XNET_E_C2S_EVNT_CHAN_EMPTED,
xcc->xcc_map_num, xcc->xcc_slot, xpm->xpm_timestamp);
xcc->xcc_event_recv_channel_empted =
CreateEvent(ISC_get_security_desc(), FALSE, TRUE, name_buffer);
CreateEvent(ISC_get_security_desc(), FALSE, FALSE, name_buffer);
if (!xcc->xcc_event_recv_channel_empted ||
(xcc->xcc_event_recv_channel_empted && ERRNO == ERROR_ALREADY_EXISTS))
{
Expand All @@ -922,7 +922,7 @@ static rem_port* aux_request(rem_port* port, PACKET* packet)
endPoint->make_event_name(name_buffer, sizeof(name_buffer), XNET_E_S2C_EVNT_CHAN_EMPTED,
xcc->xcc_map_num, xcc->xcc_slot, xpm->xpm_timestamp);
xcc->xcc_event_send_channel_empted =
CreateEvent(ISC_get_security_desc(), FALSE, TRUE, name_buffer);
CreateEvent(ISC_get_security_desc(), FALSE, FALSE, name_buffer);
if (!xcc->xcc_event_send_channel_empted ||
(xcc->xcc_event_send_channel_empted && ERRNO == ERROR_ALREADY_EXISTS))
{
Expand Down

0 comments on commit 197615c

Please sign in to comment.