We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f8e15e + e8eac7c commit c4ef855Copy full SHA for c4ef855
src/objective-c/GRPCClient/GRPCCall.m
@@ -889,14 +889,18 @@ - (void)startWithWriteable:(id<GRXWriteable>)writeable {
889
[tokenProvider getTokenWithHandler:^(NSString *token) {
890
__strong typeof(self) strongSelf = weakSelf;
891
if (strongSelf) {
892
+ BOOL startCall = NO;
893
@synchronized(strongSelf) {
- if (strongSelf->_state == GRXWriterStateNotStarted) {
894
+ if (strongSelf->_state != GRXWriterStateFinished) {
895
+ startCall = YES;
896
if (token) {
897
strongSelf->_fetchedOauth2AccessToken = [token copy];
898
}
899
900
- [strongSelf startCallWithWriteable:writeable];
901
+ if (startCall) {
902
+ [strongSelf startCallWithWriteable:writeable];
903
+ }
904
905
}];
906
} else {
0 commit comments