Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-06 00:00:47 +01:00
Don't attempt to retain the buffer if it goes to a closed connection
Dieser Commit ist enthalten in:
Ursprung
6e41ce7f15
Commit
c7bac69290
@ -256,7 +256,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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren