avoid double send

This commit is contained in:
yihaoDeng 2023-09-23 03:38:00 +00:00
parent 7d5f76c6f1
commit 67cd3ecd7f
1 changed files with 4 additions and 1 deletions

View File

@ -1299,7 +1299,10 @@ int transSendResponse(const STransMsg* msg) {
return 0;
}
SExHandle* exh = msg->info.handle;
int64_t refId = msg->info.refId;
if (exh == NULL) {
return 0;
}
int64_t refId = msg->info.refId;
ASYNC_CHECK_HANDLE(exh, refId);
STransMsg tmsg = *msg;