13
0
geforkt von Mirrors/Velocity

Don't attempt to retain the buffer if it goes to a closed connection

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-01-20 17:37:21 -05:00
Ursprung a1577dd8a5
Commit 0c7a995767

Datei anzeigen

@ -273,7 +273,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
} }
MinecraftConnection smc = serverConnection.getConnection(); MinecraftConnection smc = serverConnection.getConnection();
if (smc != null && serverConnection.getPhase().consideredComplete()) { if (smc != null && !smc.isClosed() && serverConnection.getPhase().consideredComplete()) {
smc.write(buf.retain()); smc.write(buf.retain());
} }
} }