git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1244809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-02-16 00:40:55 +00:00
parent 97ae32388c
commit 08ae7770bb
1 changed files with 5 additions and 4 deletions

View File

@ -126,10 +126,11 @@ public class StompNIOTransport extends TcpTransport {
protected void doStop(ServiceStopper stopper) throws Exception {
try {
selection.close();
} catch (Exception e) {
e.printStackTrace();
if (selection != null) {
selection.close();
}
} finally {
super.doStop(stopper);
}
super.doStop(stopper);
}
}