mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Remove GeyserImpl#shouldStartListener (#4935)
This commit is contained in:
parent
61ae5debd4
commit
ea6b0df9b5
1 changed files with 15 additions and 23 deletions
|
@ -156,12 +156,6 @@ public class GeyserImpl implements GeyserApi, EventRegistrar {
|
||||||
|
|
||||||
private final SessionManager sessionManager = new SessionManager();
|
private final SessionManager sessionManager = new SessionManager();
|
||||||
|
|
||||||
/**
|
|
||||||
* This is used in GeyserConnect to stop the bedrock server binding to a port
|
|
||||||
*/
|
|
||||||
@Setter
|
|
||||||
private static boolean shouldStartListener = true;
|
|
||||||
|
|
||||||
private FloodgateCipher cipher;
|
private FloodgateCipher cipher;
|
||||||
private FloodgateSkinUploader skinUploader;
|
private FloodgateSkinUploader skinUploader;
|
||||||
private NewsHandler newsHandler;
|
private NewsHandler newsHandler;
|
||||||
|
@ -435,7 +429,6 @@ public class GeyserImpl implements GeyserApi, EventRegistrar {
|
||||||
bedrockThreadCount = Math.max(1, SystemPropertyUtil.getInt("io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2));
|
bedrockThreadCount = Math.max(1, SystemPropertyUtil.getInt("io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldStartListener) {
|
|
||||||
this.geyserServer = new GeyserServer(this, bedrockThreadCount);
|
this.geyserServer = new GeyserServer(this, bedrockThreadCount);
|
||||||
this.geyserServer.bind(new InetSocketAddress(config.getBedrock().address(), config.getBedrock().port()))
|
this.geyserServer.bind(new InetSocketAddress(config.getBedrock().address(), config.getBedrock().port()))
|
||||||
.whenComplete((avoid, throwable) -> {
|
.whenComplete((avoid, throwable) -> {
|
||||||
|
@ -452,7 +445,6 @@ public class GeyserImpl implements GeyserApi, EventRegistrar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).join();
|
}).join();
|
||||||
}
|
|
||||||
|
|
||||||
if (config.getRemote().authType() == AuthType.FLOODGATE) {
|
if (config.getRemote().authType() == AuthType.FLOODGATE) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue