git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@675463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-07-10 07:10:06 +00:00
parent f4012c5098
commit e233801bb3
1 changed files with 6 additions and 1 deletions

View File

@ -186,7 +186,12 @@ public class TcpTransport extends TransportThreadSupport implements Transport, S
} catch (IOException e) {
stoppedLatch.get().countDown();
onException(e);
} finally {
} catch (Throwable e){
stoppedLatch.get().countDown();
IOException ioe=new IOException("Unexpected error occured");
ioe.initCause(e);
onException(ioe);
}finally {
stoppedLatch.get().countDown();
}
}