File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Flow.Launcher.Core/ExternalPlugins Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,15 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
7373 return null ;
7474 }
7575 }
76- catch ( OperationCanceledException )
76+ catch ( OperationCanceledException ) when ( token . IsCancellationRequested )
7777 {
78- API . LogInfo ( ClassName , $ "Fetching from { ManifestFileUrl } was cancelled. That is most likely OK.") ;
78+ API . LogInfo ( ClassName , $ "Fetching from { ManifestFileUrl } was cancelled by caller.") ;
79+ return null ;
80+ }
81+ catch ( TaskCanceledException )
82+ {
83+ // Likely an HttpClient timeout or external cancellation not requested by our token
84+ API . LogWarn ( ClassName , $ "Fetching from { ManifestFileUrl } timed out.") ;
7985 return null ;
8086 }
8187 catch ( Exception e )
You can’t perform that action at this time.
0 commit comments