Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Fix not forwarding channelReadComplete events in some cases
Dieser Commit ist enthalten in:
Ursprung
82f1c918ca
Commit
5a25e351b4
@ -62,10 +62,14 @@ public class AutoReadHolderHandler extends ChannelDuplexHandler {
|
||||
|
||||
@Override
|
||||
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
|
||||
if (this.queuedMessages.isEmpty()) {
|
||||
if (ctx.channel().config().isAutoRead()) {
|
||||
if (!this.queuedMessages.isEmpty()) {
|
||||
this.drainQueuedMessages(ctx); // will also call fireChannelReadComplete()
|
||||
} else {
|
||||
ctx.fireChannelReadComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren