Fix invokable order of invocation:

The call to the final handler in a composed operation MUST be
the last thing performed, as the handler may cause the end of
object lifetimes before it returns.
This commit is contained in:
seelabs
2017-07-20 08:12:05 -07:00
committed by Vinnie Falco
parent 4104eca1f1
commit e552ba7c2d
3 changed files with 3 additions and 3 deletions
@@ -256,8 +256,8 @@ operator()(
deallocate(d.tmp, d.tmp_size, d.h);
d.tmp = nullptr;
}
d.h(ec);
d.ws.rd_op_.maybe_invoke();
d.h(ec);
}
} // websocket