Fix scope of a lock

pull/2105/head
Vijay Pai 10 years ago
parent d03adc340a
commit f75ed23c20
  1. 4
      src/core/surface/server.c

@ -656,11 +656,11 @@ static void destroy_call_elem(grpc_call_element *elem) {
removed[i] = call_list_remove(elem->call_data, i);
}
gpr_mu_unlock(&chand->server->mu_call);
gpr_mu_lock(&chand->server->mu_global);
if (removed[ALL_CALLS]) {
gpr_mu_lock(&chand->server->mu_global);
decrement_call_count(chand);
gpr_mu_unlock(&chand->server->mu_global);
}
gpr_mu_unlock(&chand->server->mu_global);
if (calld->host) {
grpc_mdstr_unref(calld->host);

Loading…
Cancel
Save