Close #489 - disable resource leak detector for performance reasons

This commit is contained in:
md_5 2013-07-04 09:20:55 +10:00
parent 07288c722c
commit b741722e5d

View File

@ -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();