Fix check which allows QoS 3 (#1248)

Signed-off-by: A-Imal <Abdullah.Imal@dc-square.de>
This commit is contained in:
Abdullah Imal 2019-11-29 19:54:42 +01:00 committed by Christoph Weitkamp
parent 2d14814549
commit 991a8fd850

View File

@ -387,7 +387,7 @@ public class MqttBrokerConnection {
* @param qos level.
*/
public void setQos(int qos) {
if (qos < 0 || qos > 3) {
if (qos < 0 || qos > 2) {
throw new IllegalArgumentException();
}
this.qos = qos;