Cleanup unlock() a little

pull/1509/head
Craig Tiller 10 years ago
parent 63733efd73
commit 1d74de996c
  1. 7
      src/core/transport/chttp2_transport.c

@ -824,12 +824,9 @@ static void unlock(transport *t) {
/* gather any callbacks that need to be made */
if (!t->calling_back) {
perform_callbacks = prepare_callbacks(t);
if (perform_callbacks) {
t->calling_back = 1;
}
t->calling_back = perform_callbacks = prepare_callbacks(t);
if (cb) {
if (t->error_state == ERROR_STATE_SEEN && !t->writing && !t->calling_back) {
if (t->error_state == ERROR_STATE_SEEN && !t->writing) {
call_closed = 1;
t->calling_back = 1;
t->cb = NULL; /* no more callbacks */

Loading…
Cancel
Save