fix error

This commit is contained in:
heavyrain.lee
2019-05-26 23:46:42 +08:00
parent 36aa0518ed
commit d3aa68df05
2 changed files with 2 additions and 2 deletions
@@ -73,7 +73,7 @@ public class RPCCenter {
info.future.cancel(true);
if (info.callback != null) {
info.callback.getResponseExecutor().execute(() -> {
if (errorCode == 0 || errorCode == ErrorCode.ERROR_CODE_ASYNC_HANDLER.getCode()) {
if (errorCode == 0 || errorCode == ErrorCode.ERROR_CODE_SUCCESS_GZIPED.getCode()) {
info.callback.onSuccess(message);
} else {
info.callback.onError(ErrorCode.fromCode(errorCode));
@@ -188,7 +188,7 @@ public class Qos1PublishHandler extends QosPublishHandler {
e.printStackTrace();
}
data = out.toByteArray();
code = (byte)ErrorCode.ERROR_CODE_ASYNC_HANDLER.code;
code = (byte)ErrorCode.ERROR_CODE_SUCCESS_GZIPED.code;
}
data = AES.AESEncrypt(data, session.getSecret());