mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageFileCache.cs
This commit is contained in:
parent
7e5a61b4e0
commit
b77a29b4e1
|
|
@ -93,13 +93,13 @@ namespace MapControl.Caching
|
|||
{
|
||||
var buffer = await memoryCache.GetAsync(key, token).ConfigureAwait(false);
|
||||
|
||||
if (buffer == null && !token.IsCancellationRequested)
|
||||
if (buffer == null)
|
||||
{
|
||||
var path = GetPath(key);
|
||||
|
||||
try
|
||||
{
|
||||
if (path != null && File.Exists(path))
|
||||
if (path != null && File.Exists(path) && !token.IsCancellationRequested)
|
||||
{
|
||||
buffer = await ReadAllBytesAsync(path).ConfigureAwait(false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue