Merge pull request #1587 from thingsboard/bug/fix-for-double-ack

Fixed doulbe PUBACK for attribute request messages
This commit is contained in:
Igor Kulikov 2019-04-01 12:33:09 +03:00 committed by GitHub
commit 13ec731f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,10 +279,10 @@ public class GatewaySessionHandler {
@Override
public void onFailure(Throwable t) {
ack(msg);
log.debug("[{}] Failed to process device attributes request command: {}", sessionId, deviceName, t);
}
}, context.getExecutor());
ack(msg);
} else {
throw new JsonSyntaxException(CAN_T_PARSE_VALUE + json);
}