Fixed issue #3, avoid hung up of broker on any message processing error

This commit is contained in:
andrea
2015-01-31 12:19:50 +01:00
parent 97dd07e1d4
commit 9562f56a3a
3 changed files with 20 additions and 3 deletions
@@ -155,5 +155,13 @@ public class ConnectMessage extends AbstractMessage {
public void setWillMessage(String willMessage) {
this.m_willMessage = willMessage;
}
@Override
public String toString() {
String base = String.format("Connect [clientID: %s, prot: %s, ver: %02X, clean: %b]", m_clientID, m_protocolName, m_procotolVersion, m_cleanSession);
if (m_willFlag) {
base += String.format(" Will [QoS: %d, retain: %b]", m_willQos, m_willRetain);
}
return base;
}
}