Skip to content

Commit

Permalink
Fix a race in cancellation in DecodeJob.
Browse files Browse the repository at this point in the history
Fixes #424.
  • Loading branch information
sjudd committed Apr 20, 2015
1 parent 6c85b13 commit ad9c91c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public Resource<Z> decodeFromSource() throws Exception {
}

public void cancel() {
fetcher.cancel();
isCancelled = true;
fetcher.cancel();
}

private Resource<Z> transformEncodeAndTranscode(Resource<T> decoded) {
Expand Down

0 comments on commit ad9c91c

Please sign in to comment.