serverContext: collapse destroyAllTransports() into shutdown()

This commit is contained in:
Michael Davidsaver
2018-04-02 11:47:20 -07:00
parent eed26a166e
commit 28cec947ae
2 changed files with 1 additions and 12 deletions

View File

@@ -346,7 +346,7 @@ void ServerContextImpl::shutdown()
}
// this will also destroy all channels
destroyAllTransports();
_transportRegistry.clear();
// drop timer queue
LEAK_CHECK(_timer, "_timer")
@@ -360,12 +360,6 @@ void ServerContextImpl::shutdown()
_runEvent.signal();
}
void ServerContextImpl::destroyAllTransports()
{
// now clear all (release)
_transportRegistry.clear();
}
void ServerContext::printInfo(int lvl)
{
printInfo(cout, lvl);