Minor fix in UdpSocket::Send(Packet)
This commit is contained in:
parent
0dc5003969
commit
b0ebca9d29
@ -168,7 +168,7 @@ Socket::Status UdpSocket::Send(Packet& packet, const IpAddress& remoteAddress, u
|
|||||||
const char* data = packet.OnSend(size);
|
const char* data = packet.OnSend(size);
|
||||||
|
|
||||||
// Send it
|
// Send it
|
||||||
return Send(data, std::min(size, static_cast<std::size_t>(MaxDatagramSize)), remoteAddress, remotePort);
|
return Send(data, size, remoteAddress, remotePort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user