mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +01:00
Recycle messagelist when channel goes inactive
This commit is contained in:
parent
0189ad9c17
commit
daa58ffe58
@ -15,7 +15,7 @@ public class ChannelWrapper
|
|||||||
private final Channel ch;
|
private final Channel ch;
|
||||||
@Getter
|
@Getter
|
||||||
private volatile boolean closed;
|
private volatile boolean closed;
|
||||||
private final MessageList<Object> queue = MessageList.newInstance();
|
final MessageList<Object> queue = MessageList.newInstance();
|
||||||
private volatile boolean flushNow = true;
|
private volatile boolean flushNow = true;
|
||||||
|
|
||||||
public ChannelWrapper(ChannelHandlerContext ctx)
|
public ChannelWrapper(ChannelHandlerContext ctx)
|
||||||
|
@ -56,6 +56,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
|
|||||||
ProxyServer.getInstance().getLogger().log( Level.INFO, "{0} has disconnected", handler );
|
ProxyServer.getInstance().getLogger().log( Level.INFO, "{0} has disconnected", handler );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
channel.queue.recycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user