From ac3c95553979bcff540a6bcdf39509ad41cbb619 Mon Sep 17 00:00:00 2001 From: TheBestPessimist Date: Fri, 3 Mar 2023 14:56:20 +0200 Subject: [PATCH] Async is hard. Not sure exactly why the previous version was not working, but i _assume_ it's because I was in a deadlock on that semaphore. --- .../Search/Everything/EverythingAPI.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs index ade6d1a66..a90fab064 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs @@ -178,9 +178,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything try { await _semaphore.WaitAsync(TimeSpan.FromSeconds(1)); - - if (await IsEverythingRunningAsync()) - _ = EverythingApiDllImport.Everything_IncRunCountFromFileName(fileOrFolder); + _ = EverythingApiDllImport.Everything_IncRunCountFromFileName(fileOrFolder); } catch (Exception) {