remove notification observer to avoid iOS 8 crash

pull/19169/head
HarrisonXi 6 years ago committed by GitHub
parent 84529002a1
commit fa6c944f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m

@ -648,6 +648,8 @@ const char *kCFStreamVarName = "grpc_cfstream";
} }
- (void)dealloc { - (void)dealloc {
[GRPCConnectivityMonitor unregisterObserver:self];
__block GRPCWrappedCall *wrappedCall = _wrappedCall; __block GRPCWrappedCall *wrappedCall = _wrappedCall;
dispatch_async(_callQueue, ^{ dispatch_async(_callQueue, ^{
wrappedCall = nil; wrappedCall = nil;

Loading…
Cancel
Save