diff --git a/CraftBukkit-Patches/0026-Netty.patch b/CraftBukkit-Patches/0026-Netty.patch index 5ceceb8..9d461fc 100644 --- a/CraftBukkit-Patches/0026-Netty.patch +++ b/CraftBukkit-Patches/0026-Netty.patch @@ -1,4 +1,4 @@ -From de2471c4b58082edcbe6c7222446d1a5087f935f Mon Sep 17 00:00:00 2001 +From 9e2340addda939c6025c98d09d1ce3ace1643352 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 14 Feb 2013 17:32:20 +1100 Subject: [PATCH] Netty @@ -187,7 +187,7 @@ index 0000000..cfc0535 +} diff --git a/src/main/java/org/spigotmc/netty/NettyNetworkManager.java b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java new file mode 100644 -index 0000000..90c63e1 +index 0000000..027cc31 --- /dev/null +++ b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java @@ -0,0 +1,206 @@ @@ -346,7 +346,7 @@ index 0000000..90c63e1 + } + + // Disconnect via the handler - this performs all plugin related cleanup + logging -+ if (!connected) { ++ if (!connected && (dcReason != null || dcArgs != null)) { + handler.a(dcReason, dcArgs); + } + }