mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update ImageFileCache.cs
This commit is contained in:
parent
7e5a61b4e0
commit
b77a29b4e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue