diff --git a/src/MaaCore/Controller/Platform/Win32IO.cpp b/src/MaaCore/Controller/Platform/Win32IO.cpp index e35ecf4418..78466b2c9b 100644 --- a/src/MaaCore/Controller/Platform/Win32IO.cpp +++ b/src/MaaCore/Controller/Platform/Win32IO.cpp @@ -542,6 +542,7 @@ std::string asst::IOHandlerWin32::read(unsigned timeout_sec) } } + CloseHandle(pipeov.hEvent); return pipe_buffer.get(); }