mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Reset remotenode when discarding STUN/hole punch packet
Fixes some wild behavior when a lot of hole punching requests are coming in.
This commit is contained in:
parent
1a6e54e673
commit
09d48b00f8
1 changed files with 2 additions and 2 deletions
|
|
@ -595,13 +595,13 @@ static boolean SOCK_Get(void)
|
||||||
#ifdef USE_STUN
|
#ifdef USE_STUN
|
||||||
if (STUN_got_response(doomcom->data, c))
|
if (STUN_got_response(doomcom->data, c))
|
||||||
{
|
{
|
||||||
return false;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (hole_punch(c))
|
if (hole_punch(c))
|
||||||
{
|
{
|
||||||
return false;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// find remote node number
|
// find remote node number
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue