0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::client: Tap the client::dock on all dtors.

This commit is contained in:
Jason Volk 2019-04-11 08:53:38 -07:00
parent b353f3d0ac
commit eef869691a

View file

@ -202,10 +202,7 @@ ircd::client::close_all()
{
auto c(shared_from(*it->second)); ++it; try
{
c->close(net::dc::RST, [c](const auto &e)
{
dock.notify_all();
});
c->close(net::dc::RST, net::close_ignore);
}
catch(const std::exception &e)
{
@ -632,6 +629,7 @@ ircd::client::client(std::shared_ptr<socket> sock)
ircd::client::~client()
noexcept try
{
dock.notify_all();
//assert(!sock || !connected(*sock));
}
catch(const std::exception &e)