refactor: adjust error codes

This commit is contained in:
Shengliang Guan 2022-05-21 15:36:18 +08:00
parent 6b2600561c
commit 2b9e26598d
1 changed files with 5 additions and 1 deletions

View File

@ -139,7 +139,11 @@ _OVER:
}
}
SRpcMsg rspMsg = {.code = code, .info = pRpc->info};
tmsgSendRsp(&rspMsg);
if (pWrapper != NULL) {
tmsgSendRsp(&rspMsg);
} else {
rpcSendResponse(&rspMsg);
}
}
dTrace("msg:%p, is freed", pMsg);