client: don't attempt to reconnect NS during shutdown

Connection::build() can't succeed
This commit is contained in:
Michael Davidsaver
2023-05-11 11:23:00 -07:00
parent 939391590e
commit 4d12da8720
+1 -1
View File
@@ -207,7 +207,7 @@ void Channel::disconnect(const std::shared_ptr<Channel>& self)
current ? current->peerName.c_str() : "<disconnected>",
name.c_str());
} else { // reconnect to specific server
} else if(context->state==ContextImpl::Running) { // reconnect to specific server
conn = Connection::build(context, forcedServer, true);
conn->pending[cid] = self;