Commit ce5a4f591bf2d878215eaa57cc42f3326e4a40eb
Committed by
GitHub
Merge pull request #841 from thingsboard/fix-for-qos-0
Fix for QoS 0
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -86,7 +86,7 @@ public class GatewayDeviceSessionCtx extends DeviceAwareSessionContext { |
86 | 86 | if (responseMsg.isSuccess()) { |
87 | 87 | SessionMsgType requestMsgType = responseMsg.getRequestMsgType(); |
88 | 88 | Integer requestId = responseMsg.getRequestId(); |
89 | - if (requestId >= 0 && requestMsgType == SessionMsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == SessionMsgType.POST_TELEMETRY_REQUEST) { | |
89 | + if (requestId >= 0 && (requestMsgType == SessionMsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == SessionMsgType.POST_TELEMETRY_REQUEST)) { | |
90 | 90 | return Optional.of(MqttTransportHandler.createMqttPubAckMsg(requestId)); |
91 | 91 | } |
92 | 92 | } | ... | ... |