mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Use legacy DefaultEventLoopGroup constructor; label Geyser <-> Spigot connection thread
This commit is contained in:
parent
61d95200e3
commit
76399881a3
2 changed files with 4 additions and 2 deletions
|
@ -30,6 +30,7 @@ import com.viaversion.viaversion.bukkit.handlers.BukkitChannelInitializer;
|
|||
import io.netty.bootstrap.ServerBootstrap;
|
||||
import io.netty.channel.*;
|
||||
import io.netty.channel.local.LocalAddress;
|
||||
import io.netty.util.concurrent.DefaultThreadFactory;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.geysermc.connector.bootstrap.GeyserBootstrap;
|
||||
import org.geysermc.connector.common.GeyserInjector;
|
||||
|
@ -117,7 +118,7 @@ public class GeyserSpigotInjector extends GeyserInjector {
|
|||
initChannel.invoke(childHandler, ch);
|
||||
}
|
||||
})
|
||||
.group(new DefaultEventLoopGroup())
|
||||
.group(new DefaultEventLoopGroup(0, new DefaultThreadFactory("Geyser Spigot connection thread")))
|
||||
.localAddress(LocalAddress.ANY))
|
||||
.bind()
|
||||
.syncUninterruptibly();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue