Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed May 13, 2018
1 parent c0b63ca commit e6a91c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/budiyev/android/codescanner/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ public void setCallback(@Nullable final DecodeCallback callback) {

public void decode(@NonNull final DecodeTask task) {
synchronized (mTaskLock) {
mTask = task;
mTaskLock.notify();
if (mState != State.STOPPED) {
mTask = task;
mTaskLock.notify();
}
}
}

Expand Down

0 comments on commit e6a91c2

Please sign in to comment.