Fix error refcounting issue in cfstream client

pull/15069/head
Muxi Yan 7 years ago
parent d810bdc00f
commit 2111cc0a8e
  1. 4
      src/core/lib/iomgr/tcp_client_cfstream.cc

@ -131,9 +131,11 @@ static void OnOpen(void* arg, grpc_error* error) {
connect->read_stream, connect->write_stream, connect->addr_name,
connect->resource_quota, connect->stream_sync);
}
} else {
GRPC_ERROR_REF(error);
}
gpr_mu_unlock(&connect->mu);
GRPC_CLOSURE_SCHED(closure, GRPC_ERROR_REF(error));
GRPC_CLOSURE_SCHED(closure, error);
}
}

Loading…
Cancel
Save