From b741722e5da77b37b84104a276f5238b17c94aa6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 4 Jul 2013 09:20:55 +1000 Subject: [PATCH] Close #489 - disable resource leak detector for performance reasons --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 5 +++++ 1 file changed, 5 insertions(+) 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 1892df9a..66380ff0 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -218,6 +218,11 @@ public class BungeeCord extends ProxyServer @Override public void start() throws Exception { + if ( System.getProperty( "io.netty.noResourceLeakDetection" ) != null ) + { + System.setProperty( "io.netty.noResourceLeakDetection", "true" ); + } + pluginsFolder.mkdir(); pluginManager.detectPlugins( pluginsFolder ); config.load();