diff --git a/extensions/devtools.cpp b/extensions/devtools.cpp index a8b2a79..66a68b4 100644 --- a/extensions/devtools.cpp +++ b/extensions/devtools.cpp @@ -149,6 +149,12 @@ namespace DevTools CloseHandle(processInfo.hProcess); CloseHandle(processInfo.hThread); } + for (int retry = 0; ++retry < 20; Sleep(100)) + { + try { std::filesystem::remove_all(L"devtoolscache"); break; } + catch (std::filesystem::filesystem_error) { continue; } + } + OnStatusChanged("Stopped"); try { std::filesystem::remove_all(L"devtoolscache"); } catch (std::filesystem::filesystem_error) {} StatusChanged("Stopped"); }