enhance: refine udfd code

This commit is contained in:
slzhou 2022-05-17 10:08:15 +08:00
parent 5a15151b87
commit 47f0c6db6a
1 changed files with 2 additions and 2 deletions

View File

@ -809,7 +809,6 @@ static int32_t udfdRun() {
fnInfo("udfd stopped. result: %s, code: %d", uv_err_name(code), code);
int codeClose = uv_loop_close(global.loop);
fnDebug("uv loop close. result: %s", uv_err_name(codeClose));
removeListeningPipe();
uv_mutex_destroy(&global.udfsMutex);
taosHashCleanup(global.udfsHash);
return 0;
@ -859,6 +858,7 @@ int main(int argc, char *argv[]) {
udfdRun();
udfdCloseClientRpc();
removeListeningPipe();
udfdCloseClientRpc();
}