Skip to content

Commit

Permalink
ChannelOperations#isDisposed should check for channel active
Browse files Browse the repository at this point in the history
If the channel is no more active then this ChannelOperations is disposed.
  • Loading branch information
violetagg committed May 2, 2018
1 parent 4a2e773 commit 51b33c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void dispose() {

@Override
public final boolean isDisposed() {
return get(channel()) != this;
return !channel().isActive() || get(channel()) != this;
}

@Override
Expand Down

0 comments on commit 51b33c3

Please sign in to comment.