timeout > 0

pull/16190/head
Muxi Yan 6 years ago
parent a8b07a37df
commit 543fbf38c0
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m

@ -753,7 +753,7 @@ const char *kCFStreamVarName = "grpc_cfstream";
if (_serverName.length != 0) {
callOptions.serverAuthority = _serverName;
}
if (_timeout != 0) {
if (_timeout > 0) {
callOptions.timeout = _timeout;
}
uint32_t callFlags = [GRPCCall callFlagsForHost:_host path:_path];

Loading…
Cancel
Save