diff options
author | Muxi Yan <mxyan@google.com> | 2019-01-09 09:38:47 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2019-01-09 09:38:47 -0800 |
commit | d4fa274bf2994276341e47920aa46e7a009b4d10 (patch) | |
tree | 149815a6421a2317600d2274c562fea01192dfa2 /src/objective-c/RxLibrary/GRXConcurrentWriteable.m | |
parent | 0c4c2de427399fe260aeaa2140638825fa43f26b (diff) |
address comments
Diffstat (limited to 'src/objective-c/RxLibrary/GRXConcurrentWriteable.m')
-rw-r--r-- | src/objective-c/RxLibrary/GRXConcurrentWriteable.m | 6 |
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; }); |