fix error
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user