diff --git a/extensions/devtools.cpp b/extensions/devtools.cpp index 66a68b4..63960c6 100644 --- a/extensions/devtools.cpp +++ b/extensions/devtools.cpp @@ -150,12 +150,10 @@ namespace DevTools 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"); }