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:
parent
957d90e63d
commit
396dfc0a79
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue