From e09e47ccb83e701c183bee0a0ad3468a8b246be7 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Mon, 5 Jun 2017 15:13:20 -0700 Subject: [PATCH] Use getter/setter --- src/objective-c/RxLibrary/GRXBufferedPipe.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objective-c/RxLibrary/GRXBufferedPipe.m b/src/objective-c/RxLibrary/GRXBufferedPipe.m index 154d164f698..eee41cc8478 100644 --- a/src/objective-c/RxLibrary/GRXBufferedPipe.m +++ b/src/objective-c/RxLibrary/GRXBufferedPipe.m @@ -73,7 +73,7 @@ __weak GRXBufferedPipe *weakSelf = self; dispatch_async(_writeQueue, ^(void) { GRXBufferedPipe *strongSelf = weakSelf; - if (strongSelf && !strongSelf->_errorOrNil) { + if (strongSelf && !strongSelf.errorOrNil) { [strongSelf->_writeable writeValue:value]; } }); @@ -84,7 +84,7 @@ return; } _inputIsFinished = YES; - _errorOrNil = errorOrNil; + self.errorOrNil = errorOrNil; if (errorOrNil) { // No need to write pending values. [self finishWithError:_errorOrNil];