diff --git a/src/i_tcp.c b/src/i_tcp.c
index 7842f57165f2ccfc6fd17f8ca51cbc83a61e7cdb..f642313f8782c1822be25b42e365fdb447f89176 100644
--- a/src/i_tcp.c
+++ b/src/i_tcp.c
@@ -713,13 +713,13 @@ static boolean SOCK_Get(void)
 #ifdef USE_STUN
 			if (STUN_got_response(doomcom->data, c))
 			{
-				return false;
+				break;
 			}
 #endif
 
 			if (hole_punch(c))
 			{
-				return false;
+				break;
 			}
 
 			// find remote node number