Explorar o código

Restore fix undid by https://github.com/grpc/grpc/pull/5893

That PR wasn’t tested nor reviewed adequately.
Jorge Canizales %!s(int64=9) %!d(string=hai) anos
pai
achega
3785d53931
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/objective-c/GRPCClient/GRPCCall.m

+ 1 - 1
src/objective-c/GRPCClient/GRPCCall.m

@@ -378,7 +378,7 @@ NSString * const kGRPCTrailersKey = @"io.grpc.TrailersKey";
       [strongSelf finishWithError:[NSError errorWithDomain:kGRPCErrorDomain
       [strongSelf finishWithError:[NSError errorWithDomain:kGRPCErrorDomain
                                                       code:GRPCErrorCodeUnavailable
                                                       code:GRPCErrorCodeUnavailable
                                                   userInfo:@{NSLocalizedDescriptionKey: @"Connectivity lost."}]];
                                                   userInfo:@{NSLocalizedDescriptionKey: @"Connectivity lost."}]];
-      [[GRPCHost hostWithAddress:strongSelf->_host] discardChannel:channel];
+      [[GRPCHost hostWithAddress:strongSelf->_host] disconnect];
     }
     }
   }];
   }];
 }
 }