More, shorter retries
This commit is contained in:
parent
ea21ad0061
commit
9ed6614e5b
1 changed files with 5 additions and 2 deletions
|
@ -44,7 +44,7 @@ public class VoiceConnection
|
|||
{
|
||||
int retryCount = 0;
|
||||
|
||||
while(username == null && retryCount <= 10)
|
||||
while(username == null && retryCount <= 60)
|
||||
{
|
||||
try {
|
||||
List l = Collections.synchronizedList((List)((ArrayList)server.getConfigurationManager().playerEntityList).clone());
|
||||
|
@ -71,7 +71,7 @@ public class VoiceConnection
|
|||
}
|
||||
|
||||
retryCount++;
|
||||
Thread.sleep(100);
|
||||
Thread.sleep(50);
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
|
||||
|
@ -80,6 +80,9 @@ public class VoiceConnection
|
|||
System.out.println("[Mekanism] VoiceServer: Unable to trace connection's IP address.");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
System.out.println("[Mekanism] VoiceServer: Traced IP in " + retryCount + " attempts.");
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
System.err.println("[Mekanism] VoiceServer: Error while starting server-based connection.");
|
||||
|
|
Loading…
Add table
Reference in a new issue