From 0df25265606e149b8fae3704507e59a2015a47fc Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 5 Jun 2021 08:50:00 -0600 Subject: [PATCH] fix botched merge --- extensions/devtools.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"); }