setTransportConnected(false);
if (ex instanceof EOFException) {
if (!isServerSide() && !isUsedInternally()){
log.warn("Peer closed connection", ex);
}
fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
}
else {
fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
}
}
stop();
}