This commit is contained in:
heavyrain.lee
2019-05-25 22:56:11 +08:00
parent b1c5692322
commit 36aa0518ed
4 changed files with 22 additions and 7 deletions
@@ -73,7 +73,7 @@ public class RPCCenter {
info.future.cancel(true);
if (info.callback != null) {
info.callback.getResponseExecutor().execute(() -> {
if (errorCode == 0) {
if (errorCode == 0 || errorCode == ErrorCode.ERROR_CODE_ASYNC_HANDLER.getCode()) {
info.callback.onSuccess(message);
} else {
info.callback.onError(ErrorCode.fromCode(errorCode));