File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,10 @@ public static bool IsFastSortOption(SortOption sortOption)
91
91
92
92
public static async ValueTask < bool > IsEverythingRunningAsync ( CancellationToken token = default )
93
93
{
94
+ await _semaphore . WaitAsync ( token ) ;
95
+
94
96
try
95
97
{
96
- await _semaphore . WaitAsync ( token ) ;
97
98
EverythingApiDllImport . Everything_GetMajorVersion ( ) ;
98
99
var result = EverythingApiDllImport . Everything_GetLastError ( ) != StateCode . IPCError ;
99
100
return result ;
@@ -119,10 +120,11 @@ public static async IAsyncEnumerable<SearchResult> SearchAsync(EverythingSearchO
119
120
if ( option . MaxCount < 0 )
120
121
throw new ArgumentOutOfRangeException ( nameof ( option . MaxCount ) , option . MaxCount , "MaxCount must be greater than or equal to 0" ) ;
121
122
123
+ await _semaphore . WaitAsync ( token ) ;
124
+
125
+
122
126
try
123
127
{
124
- await _semaphore . WaitAsync ( token ) ;
125
-
126
128
if ( token . IsCancellationRequested )
127
129
yield break ;
128
130
You can’t perform that action at this time.
0 commit comments