0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

modules/vm: Move the post_hook execution before the write commitment.

This commit is contained in:
Jason Volk 2019-03-13 16:45:22 -07:00
parent 69f1fe7241
commit 92ba96cdf1

View file

@ -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);