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 committed by toaster
parent 1a6e54e673
commit 09d48b00f8

View file

@ -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