Skip to content

Commit

Permalink
Update srtcore/channel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Jun 29, 2023
1 parent 6db27db commit 38fd70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ int srt::CChannel::sendto(const sockaddr_any& addr, CPacket& packet, const socka
SecureZeroMemory((PVOID)&overlapped, sizeof(WSAOVERLAPPED));
int res = ::WSASendTo(m_iSocket, (LPWSABUF)packet.m_PacketVector, 2, &size, 0, addr.get(), addrsize, &overlapped, NULL);

if (res == SOCKET_ERROR && WSA_IO_PENDING == NET_ERROR)
if (res == SOCKET_ERROR && NET_ERROR == WSA_IO_PENDING)
{
DWORD dwFlags = 0;
const bool bCompleted = WSAGetOverlappedResult(m_iSocket, &overlapped, &size, true, &dwFlags);
Expand Down

0 comments on commit 38fd70e

Please sign in to comment.