We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e63c4f3 commit f3998a1Copy full SHA for f3998a1
1 file changed
Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs
@@ -73,9 +73,15 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
73
return null;
74
}
75
76
- catch (OperationCanceledException)
+ catch (OperationCanceledException) when (token.IsCancellationRequested)
77
{
78
- API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled. That is most likely OK.");
+ 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.");
85
86
87
catch (Exception e)
0 commit comments