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)
73
73
return null ;
74
74
}
75
75
}
76
- catch ( OperationCanceledException )
76
+ catch ( OperationCanceledException ) when ( token . IsCancellationRequested )
77
77
{
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.") ;
79
85
return null ;
80
86
}
81
87
catch ( Exception e )
You can’t perform that action at this time.
0 commit comments