mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
RequestCertificateHandler(): don't disconnect nodes already integrated into the cluster
... not to cause a reconnect loop.
This commit is contained in:
parent
71cefb9ea4
commit
5a5cf1a2eb
@ -249,7 +249,13 @@ delayed_request:
|
|||||||
Log(LogInformation, "JsonRpcConnection")
|
Log(LogInformation, "JsonRpcConnection")
|
||||||
<< "Certificate request for CN '" << cn << "' is pending. Waiting for approval.";
|
<< "Certificate request for CN '" << cn << "' is pending. Waiting for approval.";
|
||||||
|
|
||||||
client->Disconnect();
|
if (origin) {
|
||||||
|
auto client (origin->FromClient);
|
||||||
|
|
||||||
|
if (client && !client->GetEndpoint()) {
|
||||||
|
client->Disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user