mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
modules/vm: Move the post_hook execution before the write commitment.
This commit is contained in:
parent
69f1fe7241
commit
92ba96cdf1
1 changed files with 3 additions and 3 deletions
|
@ -483,9 +483,6 @@ try
|
|||
if(ret != fault::ACCEPT)
|
||||
return ret;
|
||||
|
||||
if(opts.post)
|
||||
post_hook(event, eval);
|
||||
|
||||
if(opts.notify)
|
||||
notify_hook(event, eval);
|
||||
|
||||
|
@ -646,6 +643,9 @@ ircd::m::vm::_eval_pdu(eval &eval,
|
|||
if(opts.eval)
|
||||
eval_hook(event, eval);
|
||||
|
||||
if(opts.post)
|
||||
post_hook(event, eval);
|
||||
|
||||
if(opts.write)
|
||||
_write(eval, event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue