#3138, 3140: Check for the new leak detector netty flag
This commit is contained in:
parent
1b489bcc11
commit
6f7331e852
@ -256,7 +256,7 @@ public class BungeeCord extends ProxyServer
|
|||||||
public void start() throws Exception
|
public void start() throws Exception
|
||||||
{
|
{
|
||||||
System.setProperty( "io.netty.selectorAutoRebuildThreshold", "0" ); // Seems to cause Bungee to stop accepting connections
|
System.setProperty( "io.netty.selectorAutoRebuildThreshold", "0" ); // Seems to cause Bungee to stop accepting connections
|
||||||
if ( System.getProperty( "io.netty.leakDetectionLevel" ) == null )
|
if ( System.getProperty( "io.netty.leakDetectionLevel" ) == null && System.getProperty( "io.netty.leakDetection.level" ) == null )
|
||||||
{
|
{
|
||||||
ResourceLeakDetector.setLevel( ResourceLeakDetector.Level.DISABLED ); // Eats performance
|
ResourceLeakDetector.setLevel( ResourceLeakDetector.Level.DISABLED ); // Eats performance
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user