Skip to content

Commit

Permalink
Remove inaccurate Precondition in DecodeJob.
Browse files Browse the repository at this point in the history
Fixes #2462.
  • Loading branch information
sjudd committed Oct 13, 2017
1 parent 0b5d1bc commit 890454a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.bumptech.glide.load.engine.cache.DiskCache;
import com.bumptech.glide.load.resource.bitmap.Downsampler;
import com.bumptech.glide.util.LogTime;
import com.bumptech.glide.util.Preconditions;
import com.bumptech.glide.util.Synthetic;
import com.bumptech.glide.util.pool.FactoryPools.Poolable;
import com.bumptech.glide.util.pool.StateVerifier;
Expand Down Expand Up @@ -242,9 +241,8 @@ public void run() {
throw e;
}
} finally {
Preconditions.checkArgument(
localFetcher == null || currentFetcher == null || localFetcher.equals(currentFetcher),
"Fetchers don't match!, old: " + localFetcher + " new: " + currentFetcher);
// Keeping track of the fetcher here and calling cleanup is excessively paranoid, we call
// close in all cases anyway.
if (localFetcher != null) {
localFetcher.cleanup();
}
Expand Down

0 comments on commit 890454a

Please sign in to comment.