Skip to content

Commit

Permalink
Remove redundant epollWaitNow() call in EpollHandler#prepareToDestroy()
Browse files Browse the repository at this point in the history
Equivalent to 4.1 fix in netty#9614
  • Loading branch information
njhill committed Sep 27, 2019
1 parent 8ed2222 commit 9d94955
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -398,12 +398,6 @@ void handleLoopException(Throwable t) {

@Override
public void prepareToDestroy() {
try {
epollWaitNow();
} catch (IOException ignore) {
// ignore on close
}

// Using the intermediate collection to prevent ConcurrentModificationException.
// In the `close()` method, the channel is deleted from `channels` map.
AbstractEpollChannel[] localChannels = channels.values().toArray(new AbstractEpollChannel[0]);
Expand Down

0 comments on commit 9d94955

Please sign in to comment.