mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7970 from Icinga/bugfix/reconnect-loop
RequestCertificateHandler(): don't disconnect nodes already integrated into the cluster
This commit is contained in:
commit
d5d89b7f39
|
@ -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.";
|
||||||
|
|
||||||
|
if (origin) {
|
||||||
|
auto client (origin->FromClient);
|
||||||
|
|
||||||
|
if (client && !client->GetEndpoint()) {
|
||||||
client->Disconnect();
|
client->Disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue