Kill connection if unable to trace IP

This commit is contained in:
Aidan Brady 2013-10-18 20:24:12 -04:00
parent 9ed6614e5b
commit f646ecdff6

View file

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