mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-06 14:24:41 +08:00
Don't attempt to retain the buffer if it goes to a closed connection
This commit is contained in:
parent
92571a65db
commit
c3fab89bd7
@ -256,7 +256,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
||||
}
|
||||
|
||||
MinecraftConnection smc = serverConnection.getConnection();
|
||||
if (smc != null && serverConnection.getPhase().consideredComplete()) {
|
||||
if (smc != null && !smc.isClosed() && serverConnection.getPhase().consideredComplete()) {
|
||||
smc.write(buf.retain());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user