Skip to content
Snippets Groups Projects
Commit 1d74de99 authored by Craig Tiller's avatar Craig Tiller
Browse files

Cleanup unlock() a little

parent 63733efd
Branches
Tags
No related merge requests found
...@@ -824,12 +824,9 @@ static void unlock(transport *t) { ...@@ -824,12 +824,9 @@ static void unlock(transport *t) {
/* gather any callbacks that need to be made */ /* gather any callbacks that need to be made */
if (!t->calling_back) { if (!t->calling_back) {
perform_callbacks = prepare_callbacks(t); t->calling_back = perform_callbacks = prepare_callbacks(t);
if (perform_callbacks) {
t->calling_back = 1;
}
if (cb) { 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; call_closed = 1;
t->calling_back = 1; t->calling_back = 1;
t->cb = NULL; /* no more callbacks */ t->cb = NULL; /* no more callbacks */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment