ARTEMIS-335 Remove dead code from MQTTPublishManager
This commit is contained in:
parent
e8b189a74f
commit
fe0cb648d6
|
@ -90,17 +90,8 @@ public class MQTTPublishManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int generateMqttId(int qos) {
|
private int generateMqttId(int qos) {
|
||||||
if (qos == 1) {
|
|
||||||
return session.getSessionState().generateId();
|
return session.getSessionState().generateId();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
Integer mqttid = session.getSessionState().generateId();
|
|
||||||
if (mqttid == null) {
|
|
||||||
mqttid = (int) session.getServer().getStorageManager().generateID();
|
|
||||||
}
|
|
||||||
return mqttid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Since MQTT Subscriptions can over lap; a client may receive the same message twice. When this happens the client
|
* Since MQTT Subscriptions can over lap; a client may receive the same message twice. When this happens the client
|
||||||
|
|
Loading…
Reference in New Issue