mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-19 17:14:18 +00:00
bug in the network that prevents clients to join again
This commit is contained in:
parent
adc9b9d9c0
commit
14e612249c
|
@ -487,7 +487,8 @@ int net_server_recv(NETSERVER *s, NETPACKET *packet)
|
|||
// check if we already got this client
|
||||
for(int i = 0; i < NETWORK_MAX_CLIENTS; i++)
|
||||
{
|
||||
if(net_addr4_cmp(&s->slots[i].conn.peeraddr, &addr) == 0)
|
||||
if(s->slots[i].conn.state != NETWORK_CONNSTATE_OFFLINE &&
|
||||
net_addr4_cmp(&s->slots[i].conn.peeraddr, &addr) == 0)
|
||||
{
|
||||
found = 1; // silent ignore.. we got this client already
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue