Skip to content

Commit

Permalink
set socket before start receiving
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Sep 1, 2023
1 parent 00bcd08 commit 76daf50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/datapath_winuser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1932,13 +1932,13 @@ SocketCreateUdp(
// Must set output pointer before starting receive path, as the receive path
// will try to use the output.
//
*NewSocket = Socket;

for (uint16_t i = 0; i < SocketCount; i++) {
CxPlatDataPathStartReceiveAsync(&Socket->PerProcSockets[i]);
Socket->PerProcSockets[i].IoStarted = TRUE;
}

*NewSocket = Socket;
Socket = NULL;
RawSocket = NULL;
Status = QUIC_STATUS_SUCCESS;
Expand Down

0 comments on commit 76daf50

Please sign in to comment.