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); info.future.cancel(true);
if (info.callback != null) { if (info.callback != null) {
info.callback.getResponseExecutor().execute(() -> { 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); info.callback.onSuccess(message);
} else { } else {
info.callback.onError(ErrorCode.fromCode(errorCode)); info.callback.onError(ErrorCode.fromCode(errorCode));
@@ -188,7 +188,7 @@ public class Qos1PublishHandler extends QosPublishHandler {
e.printStackTrace(); e.printStackTrace();
} }
data = out.toByteArray(); 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()); data = AES.AESEncrypt(data, session.getSecret());