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:
parent
b353f3d0ac
commit
eef869691a
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue