BlockingTCPTransportCodec::close() wait for threads

This commit is contained in:
Michael Davidsaver
2017-05-31 15:47:46 +02:00
parent 6ad8ba3ba2
commit 3ad27665e8
2 changed files with 10 additions and 0 deletions

View File

@@ -306,6 +306,10 @@ void ServerContextImpl::destroyAllTransports()
try
{
transport->close();
if(!transport.unique())
LOG(logLevelError, "Closed transport %s still has use_count=%u",
transport->getRemoteName().c_str(),
(unsigned)transport.use_count());
}
catch (std::exception &e)
{