Removed a silencer try..catch

This commit is contained in:
andrea
2014-02-08 19:39:19 +01:00
parent 95d276f7a0
commit c9dbf58737
@@ -261,6 +261,9 @@ class ProtocolProcessor implements EventHandler<ValueEvent> {
//QoS 0 //QoS 0
sendPublish(sub.getClientId(), topic, qos, message, false); sendPublish(sub.getClientId(), topic, qos, message, false);
} else { } else {
//TODO BUG if the sub is not active the code and the cleanSession is true
//then publish to the subscriber (that is not active)
//QoS 1 or 2 //QoS 1 or 2
//if the target subscription is not clean session and is not connected => store it //if the target subscription is not clean session and is not connected => store it
if (!sub.isCleanSession() && !sub.isActive()) { if (!sub.isCleanSession() && !sub.isActive()) {
@@ -301,7 +304,6 @@ class ProtocolProcessor implements EventHandler<ValueEvent> {
pubMessage.setMessageID(messageID); pubMessage.setMessageID(messageID);
} }
try {
if (m_clientIDs == null) { if (m_clientIDs == null) {
throw new RuntimeException("Internal bad error, found m_clientIDs to null while it should be initialized, somewhere it's overwritten!!"); throw new RuntimeException("Internal bad error, found m_clientIDs to null while it should be initialized, somewhere it's overwritten!!");
} }
@@ -312,9 +314,6 @@ class ProtocolProcessor implements EventHandler<ValueEvent> {
LOG.debug("Session for clientId {} is {}", clientId, m_clientIDs.get(clientId).getSession()); LOG.debug("Session for clientId {} is {}", clientId, m_clientIDs.get(clientId).getSession());
// m_clientIDs.get(clientId).getSession().write(pubMessage); // m_clientIDs.get(clientId).getSession().write(pubMessage);
disruptorPublish(new OutputMessagingEvent(m_clientIDs.get(clientId).getSession(), pubMessage)); disruptorPublish(new OutputMessagingEvent(m_clientIDs.get(clientId).getSession(), pubMessage));
} catch(Throwable t) {
LOG.error(null, t);
}
} }
private void sendPubRec(String clientID, int messageID) { private void sendPubRec(String clientID, int messageID) {