mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd:Ⓜ️:vm: Skip existential check for issued events.
This commit is contained in:
parent
3af0ebe53a
commit
d46b6bb27b
1 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ try
|
|||
// returning fault::EXISTS after an existence check. If we had to wait for
|
||||
// a duplicate eval this check will indicate its success.
|
||||
if(likely(!opts.replays && opts.nothrows & fault::EXISTS) && event.event_id)
|
||||
if(m::exists(event.event_id))
|
||||
if(!eval.copts && m::exists(event.event_id))
|
||||
return fault::EXISTS;
|
||||
|
||||
// Set a member pointer to the event currently being evaluated. This
|
||||
|
@ -586,7 +586,7 @@ ircd::m::vm::execute_pdu(eval &eval,
|
|||
fault::EXISTS, "Event is already being evaluated."
|
||||
};
|
||||
|
||||
if(likely(!opts.replays) && m::exists(event_id))
|
||||
if(likely(!opts.replays) && !eval.copts && m::exists(event_id))
|
||||
throw error
|
||||
{
|
||||
fault::EXISTS, "Event has already been evaluated."
|
||||
|
|
Loading…
Reference in a new issue