Reverting the previous commit which makes no sense
This commit is contained in:
parent
968ed8b53e
commit
831a13694c
@ -471,10 +471,6 @@ public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor {
|
|||||||
* make sure important tasks are not counted.
|
* make sure important tasks are not counted.
|
||||||
*/
|
*/
|
||||||
protected boolean shouldCount(Runnable task) {
|
protected boolean shouldCount(Runnable task) {
|
||||||
if (task instanceof ChannelDownstreamEventRunnable) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (task instanceof ChannelUpstreamEventRunnable) {
|
if (task instanceof ChannelUpstreamEventRunnable) {
|
||||||
ChannelUpstreamEventRunnable r = (ChannelUpstreamEventRunnable) task;
|
ChannelUpstreamEventRunnable r = (ChannelUpstreamEventRunnable) task;
|
||||||
ChannelEvent e = r.getEvent();
|
ChannelEvent e = r.getEvent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user