0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +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 auto c(shared_from(*it->second)); ++it; try
{ {
c->close(net::dc::RST, [c](const auto &e) c->close(net::dc::RST, net::close_ignore);
{
dock.notify_all();
});
} }
catch(const std::exception &e) catch(const std::exception &e)
{ {
@ -632,6 +629,7 @@ ircd::client::client(std::shared_ptr<socket> sock)
ircd::client::~client() ircd::client::~client()
noexcept try noexcept try
{ {
dock.notify_all();
//assert(!sock || !connected(*sock)); //assert(!sock || !connected(*sock));
} }
catch(const std::exception &e) catch(const std::exception &e)