Skip to content

Commit 9444327

Browse files
author
Salah Alobid
authored
bug fix QoS 2 (#71)
1 parent 0b2466c commit 9444327

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/correomqtt/business/model

1 file changed

+1
-1
lines changed

src/main/java/org/correomqtt/business/model/Qos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static Qos valueOf(MqttQos qos) {
2929
@SuppressWarnings("unused")
3030
@JsonCreator
3131
public static Qos fromJsonValue(int value) {
32-
if (value < 0 || value >= 2) {
32+
if (value < 0 || value > 2) {
3333
return null;
3434
}
3535
return values()[value];

0 commit comments

Comments
 (0)