0
0
Fork 0
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:
Jason Volk 2019-01-17 14:08:26 -08:00
parent 379d5d5914
commit 1fb64a8924

View file

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