Skip to content

Commit 58d258b

Browse files
committed
fix synchronization on non-final block
1 parent ac650b5 commit 58d258b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rxjava-core/src/main/java/rx/operators/SynchronizedObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class SynchronizedObserver<T> implements Observer<T> {
4949
private final SafeObservableSubscription subscription;
5050
private volatile boolean finishRequested = false;
5151
private volatile boolean finished = false;
52-
private volatile Object lock;
52+
private final Object lock;
5353

5454
public SynchronizedObserver(Observer<? super T> Observer, SafeObservableSubscription subscription) {
5555
this.observer = Observer;

0 commit comments

Comments
 (0)