Commit 362d5503 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

Do not crash when closing both client and upstream

parent 532fc1bf
......@@ -581,6 +581,15 @@ operation_abandon( Operation *op )
* FIXME: the dance in operation_destroy_from_upstream might be slower than
* optimal as we've done some of the things above already. However, we want
* to clear o_upstream from the op if it's dying, but witnessing and
* navigating the race to do that safely is too complex to copy here.
if ( !c->c_live ) {
operation_destroy_from_upstream( op );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment