From e4992d8f0537d3084be7799fdb7c7ed6c14930b5 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Nov 2025 00:58:40 +0800 Subject: close event and sharedata --- xmake/core/base/private/async_task.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmake/core/base/private/async_task.lua b/xmake/core/base/private/async_task.lua index 73785f09c..091a50b3e 100644 --- a/xmake/core/base/private/async_task.lua +++ b/xmake/core/base/private/async_task.lua @@ -226,6 +226,8 @@ function async_task.cp(srcpath, dstpath, opt) task_event:post() cmd_event:wait(-1) local result = cmd_result:get() + cmd_event:close() + cmd_result:close() if result and result.ok then return true else @@ -275,6 +277,8 @@ function async_task.rm(filepath, opt) task_event:post() cmd_event:wait(-1) local result = cmd_result:get() + cmd_event:close() + cmd_result:close() if result and result.ok then return true else @@ -324,6 +328,8 @@ function async_task.rmdir(dir, opt) task_event:post() cmd_event:wait(-1) local result = cmd_result:get() + cmd_event:close() + cmd_result:close() if result and result.ok then return true else @@ -358,6 +364,8 @@ function async_task.match(pattern, mode) task_event:post() cmd_event:wait(-1) local result = cmd_result:get() + cmd_event:close() + cmd_result:close() if result and result.ok then return result.data else -- cgit v1.3.1