0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd::server: Tweak assertion conditions.

This commit is contained in:
Jason Volk 2019-09-03 20:24:27 -07:00
parent 957d90e63d
commit 396dfc0a79

View file

@ -607,6 +607,7 @@ noexcept
void
ircd::server::peer::close(const net::close_opts &opts)
{
assert(!op_fini);
op_fini = true;
link *links[LINK_MAX];
const auto end(pointers(this->links, links));
@ -3970,9 +3971,8 @@ const
if(!p.valid())
return true;
if(!ctx::is(p.state(), ctx::future_state::PENDING))
return true;
assert(p.st);
assert(is(p.state(), ctx::future_state::PENDING));
return false;
}