mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Clear Packet Queue on Disconnect
This commit is contained in:
parent
33b5ebba7f
commit
3902c978d4
1 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Wed, 22 Jul 2015 19:04:37 +1000
|
||||
Subject: [PATCH] Clear Packet Queue on Disconnect
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
+++ b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
@@ -0,0 +0,0 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet> {
|
||||
} else if (this.getPacketListener() != null) {
|
||||
this.getPacketListener().a(new ChatComponentText("Disconnected"));
|
||||
}
|
||||
+ this.i.clear(); // Free up packet queue.
|
||||
} else {
|
||||
NetworkManager.g.warn("handleDisconnection() called twice");
|
||||
}
|
||||
--
|
Loading…
Reference in a new issue