Skip to content

Commit 9f187a7

Browse files
author
Molinet, Fabien
committed
Similar return iOS/Android when task is cancelled and we try to load from cache
1 parent df06d7f commit 9f187a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FFImageLoading.Touch/Work/ImageLoaderTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ public override async Task<CacheResult> TryLoadingFromCacheAsync()
124124
return CacheResult.NotFound; // not available in the cache
125125

126126
if (IsCancelled)
127-
return CacheResult.Found;
127+
return CacheResult.NotFound; // not sure what to return in that case
128128

129129
await MainThreadDispatcher.PostAsync(() =>
130130
{
131131
_doWithImage(value);
132132
}).ConfigureAwait(false);
133133

134134
if (IsCancelled)
135-
return CacheResult.Found;
135+
return CacheResult.NotFound; // not sure what to return in that case
136136

137137
Parameters.OnSuccess((int)value.Size.Width, (int)value.Size.Height);
138138
return CacheResult.Found; // found and loaded from cache

0 commit comments

Comments
 (0)