mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Kill connection if unable to trace IP
This commit is contained in:
1 parent
9ed6614e5b
commit
f646ecdff6
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user