From f646ecdff68ed435cec117c96e98343cf46feed5 Mon Sep 17 00:00:00 2001 From: Aidan Brady Date: Fri, 18 Oct 2013 20:24:12 -0400 Subject: [PATCH] Kill connection if unable to trace IP --- common/mekanism/common/voice/VoiceConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/mekanism/common/voice/VoiceConnection.java b/common/mekanism/common/voice/VoiceConnection.java index e4ae03f5e..ae88b37b6 100644 --- a/common/mekanism/common/voice/VoiceConnection.java +++ b/common/mekanism/common/voice/VoiceConnection.java @@ -44,7 +44,7 @@ public class VoiceConnection { int retryCount = 0; - while(username == null && retryCount <= 60) + while(username == null && retryCount <= 100) { try { List l = Collections.synchronizedList((List)((ArrayList)server.getConfigurationManager().playerEntityList).clone()); @@ -78,6 +78,7 @@ public class VoiceConnection if(username == null) { System.out.println("[Mekanism] VoiceServer: Unable to trace connection's IP address."); + kill(); return; } else {