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

ircd::server: Fix condition for link finished; add assertion here.

This commit is contained in:
Jason Volk 2018-03-11 11:45:24 -07:00
parent d906025c28
commit 27b0dfffa4

View file

@ -557,6 +557,8 @@ ircd::server::peer::link_get(const request &request)
ircd::server::link &
ircd::server::peer::link_add(const size_t &num)
{
assert(!finished());
if(e)
std::rethrow_exception(e->eptr);
@ -1662,7 +1664,7 @@ ircd::server::link::finished()
const
{
if(!bool(socket))
return false;
return true;
return !opened() && op_fini && !op_init && !op_write && !op_read;
}