Disconnect all clients when we update our own certificate

refs #5450
This commit is contained in:
Gunnar Beutner 2017-08-30 15:02:48 +02:00
parent 439251532e
commit 4cfbf6eb17
1 changed files with 10 additions and 0 deletions

View File

@ -122,6 +122,16 @@ void ApiListener::UpdateSSLContext(void)
}
m_SSLContext = context;
for (const Endpoint::Ptr& endpoint : ConfigType::GetObjectsByType<Endpoint>()) {
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
client->Disconnect();
}
}
for (const JsonRpcConnection::Ptr& client : m_AnonymousClients) {
client->Disconnect();
}
}
void ApiListener::OnAllConfigLoaded(void)