client: clear nameServers during close()

This commit is contained in:
Michael Davidsaver
2023-05-11 13:15:06 -07:00
parent 6cd382eac7
commit 939391590e
+2
View File
@@ -686,6 +686,8 @@ void ContextImpl::close()
conns.clear();
chans.clear();
// breaks a ref. loop between Connection and ClientContextImpl
nameServers.clear();
// internal_self.use_count() may be >1 if
// we are orphaning some Operations