mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️:vm: Restore sequence number stackfully on completion.
This commit is contained in:
parent
7306ef4eb0
commit
61942819f2
1 changed files with 5 additions and 1 deletions
|
@ -313,6 +313,11 @@ try
|
|||
*eval.opts
|
||||
};
|
||||
|
||||
const scope_restore eval_sequence
|
||||
{
|
||||
eval.sequence, 0UL
|
||||
};
|
||||
|
||||
// The issue hook is only called when this server is injecting a newly
|
||||
// created event.
|
||||
if(eval.copts && eval.copts->issue)
|
||||
|
@ -535,7 +540,6 @@ ircd::m::vm::execute_pdu(eval &eval,
|
|||
const auto *const &top(eval::seqmax());
|
||||
eval.sequence_shared[0] = 0;
|
||||
eval.sequence_shared[1] = 0;
|
||||
eval.sequence = 0;
|
||||
eval.sequence =
|
||||
{
|
||||
top?
|
||||
|
|
Loading…
Reference in a new issue