From 47f0c6db6ab338c733f60cf6af51608aa85e4945 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 17 May 2022 10:08:15 +0800 Subject: [PATCH] enhance: refine udfd code --- source/libs/function/src/udfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/function/src/udfd.c b/source/libs/function/src/udfd.c index 36e07f07d4..e644ea6172 100644 --- a/source/libs/function/src/udfd.c +++ b/source/libs/function/src/udfd.c @@ -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(); } -- GitLab