aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/objective-c/RxLibrary/GRXConcurrentWriteable.m')
-rw-r--r--src/objective-c/RxLibrary/GRXConcurrentWriteable.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
index d8491d2aed..115195463d 100644
--- a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
+++ b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
@@ -113,10 +113,8 @@
- (void)cancelSilently {
dispatch_async(_writeableQueue, ^{
- @synchronized(self) {
- if (self->_alreadyFinished) {
- return;
- }
+ if (self->_alreadyFinished) {
+ return;
}
self.writeable = nil;
});