Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Disable netty's resource leak detector if no level is set
Dieser Commit ist enthalten in:
Ursprung
95a1cbfa24
Commit
15863bdaef
@ -34,6 +34,7 @@ import com.nukkitx.network.util.EventLoops;
|
|||||||
import com.nukkitx.protocol.bedrock.BedrockServer;
|
import com.nukkitx.protocol.bedrock.BedrockServer;
|
||||||
import io.netty.channel.epoll.Epoll;
|
import io.netty.channel.epoll.Epoll;
|
||||||
import io.netty.channel.kqueue.KQueue;
|
import io.netty.channel.kqueue.KQueue;
|
||||||
|
import io.netty.util.ResourceLeakDetector;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.geysermc.common.PlatformType;
|
import org.geysermc.common.PlatformType;
|
||||||
@ -125,6 +126,10 @@ public class GeyserConnector {
|
|||||||
private Metrics metrics;
|
private Metrics metrics;
|
||||||
|
|
||||||
private GeyserConnector(PlatformType platformType, GeyserBootstrap bootstrap) {
|
private GeyserConnector(PlatformType platformType, GeyserBootstrap bootstrap) {
|
||||||
|
if (System.getProperty("io.netty.leakDetection.level") == null) {
|
||||||
|
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED); // Can eat performance
|
||||||
|
}
|
||||||
|
|
||||||
long startupTime = System.currentTimeMillis();
|
long startupTime = System.currentTimeMillis();
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren