This commit is contained in:
Jason Penilla
2023-06-13 00:10:07 -07:00
parent aa5e9d1d49
commit b40a6bb08b
12 changed files with 15 additions and 28 deletions

View File

@@ -269,8 +269,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
this.preparing = false;
+ clearPacketQueue(); // Paper
// Spigot End
if (this.channel.isOpen()) {
this.channel.close(); // We can't wait as this may be called from an event loop.
if (this.channel == null) {
this.delayedDisconnect = disconnectReason;
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
public void handleDisconnection() {
if (this.channel != null && !this.channel.isOpen()) {