mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-5477: Server not shutting down
This commit is contained in:
parent
d208733e70
commit
fde78ef396
1 changed files with 11 additions and 0 deletions
|
@ -8,3 +8,14 @@
|
||||||
if (t0.a().isConnected()) {
|
if (t0.a().isConnected()) {
|
||||||
packet.a(t0);
|
packet.a(t0);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -23,5 +24,10 @@
|
||||||
|
});
|
||||||
|
throw CancelledPacketHandleException.INSTANCE;
|
||||||
|
}
|
||||||
|
+ // CraftBukkit start - SPIGOT-5477, MC-142590
|
||||||
|
+ else if (MinecraftServer.getServer().hasStopped() || (t0 instanceof PlayerConnection && ((PlayerConnection) t0).processedDisconnect)) {
|
||||||
|
+ throw CancelledPacketHandleException.INSTANCE;
|
||||||
|
+ }
|
||||||
|
+ // CraftBukkit end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue