mirror of https://github.com/apache/activemq.git
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:
parent
ff99872263
commit
cc849e7440
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue