From 6f7331e852792224ef9e22a9f96fa54400ee417f Mon Sep 17 00:00:00 2001 From: Ivan Pekov Date: Wed, 30 Jun 2021 12:00:22 +0300 Subject: [PATCH] #3138, 3140: Check for the new leak detector netty flag --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index f80c0486..0e5c25e9 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -256,7 +256,7 @@ public class BungeeCord extends ProxyServer public void start() throws Exception { 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 }