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:
James R 2022-08-19 19:55:08 -07:00
parent c5e131460e
commit 2137a096e6

View file

@ -713,13 +713,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