[netplay] this should fix netplay server on android, tested on windows and linux too
This commit is contained in:
parent
eccda8c39a
commit
690cb138e9
|
@ -165,7 +165,7 @@ static bool send_chunk(netplay_t *netplay)
|
||||||
{
|
{
|
||||||
if (sendto(netplay->udp_fd, (const char*)netplay->packet_buffer,
|
if (sendto(netplay->udp_fd, (const char*)netplay->packet_buffer,
|
||||||
sizeof(netplay->packet_buffer), 0, addr,
|
sizeof(netplay->packet_buffer), 0, addr,
|
||||||
sizeof(struct sockaddr)) != sizeof(netplay->packet_buffer))
|
sizeof(struct sockaddr_in6)) != sizeof(netplay->packet_buffer))
|
||||||
{
|
{
|
||||||
warn_hangup();
|
warn_hangup();
|
||||||
netplay->has_connection = false;
|
netplay->has_connection = false;
|
||||||
|
|
Loading…
Reference in New Issue