mirror of
https://github.com/matrix-construct/construct
synced 2024-06-07 12:38:56 +02:00
ircd:Ⓜ️:event::fetch: Set the fetch.valid state after index lookup failure.
This commit is contained in:
parent
379d5d5914
commit
1fb64a8924
|
@ -1487,9 +1487,13 @@ ircd::m::seek(event::fetch &fetch,
|
|||
index(event_id, std::nothrow)
|
||||
};
|
||||
|
||||
return event_idx?
|
||||
seek(fetch, event_idx, std::nothrow, opts):
|
||||
false;
|
||||
if(!event_idx)
|
||||
{
|
||||
fetch.valid = false;
|
||||
return fetch.valid;
|
||||
}
|
||||
|
||||
return seek(fetch, event_idx, std::nothrow, opts);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue