Simplify the selector close in doStop, the run method no longer tries to
close this after it has been registered and assigned.
This commit is contained in:
Timothy Bish 2016-05-13 11:31:15 -04:00
parent ff99872263
commit cc849e7440
1 changed files with 1 additions and 2 deletions

View File

@ -501,10 +501,9 @@ public class TcpTransportServer extends TransportServerThreadSupport implements
Exception firstFailure = null;
try {
final Selector selector = this.selector;
if (selector != null) {
this.selector = null;
selector.close();
selector = null;
}
} catch (Exception error) {
}