mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageLoader.cs
This commit is contained in:
parent
bf6d7ac115
commit
00a885b654
|
|
@ -117,9 +117,16 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
catch (OperationCanceledException ex)
|
||||
{
|
||||
Logger?.LogTrace("Cancelled loading image from {uri}", uri);
|
||||
if (ex.InnerException is TimeoutException timeout)
|
||||
{
|
||||
Logger?.LogError(timeout, "Failed loading image from {uri}", uri);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger?.LogTrace("Cancelled loading image from {uri}", uri);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue