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.
This commit is contained in:
TheBestPessimist 2023-03-03 14:56:20 +02:00 committed by TheBestPessimist
parent 94b841d341
commit ac3c955539

View file

@ -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)
{