mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +02:00
TEST
This commit is contained in:
parent
1b2875dc45
commit
57c4f42afe
@ -800,7 +800,7 @@ void ApiListener::NewClientHandlerInternal(
|
||||
if (ctype == ClientJsonRpc) {
|
||||
Log(LogNotice, "ApiListener", "New JSON-RPC client");
|
||||
|
||||
if (endpoint && endpoint->GetConnected()) {
|
||||
if (0 && endpoint && endpoint->GetConnected()) {
|
||||
Log(LogNotice, "ApiListener")
|
||||
<< "Ignoring JSON-RPC connection " << conninfo
|
||||
<< ". We're already connected to Endpoint '" << endpoint->GetName() << "'.";
|
||||
@ -810,8 +810,6 @@ void ApiListener::NewClientHandlerInternal(
|
||||
JsonRpcConnection::Ptr aclient = new JsonRpcConnection(identity, verify_ok, client, role);
|
||||
|
||||
if (endpoint) {
|
||||
endpoint->AddClient(aclient);
|
||||
|
||||
Utility::QueueAsyncCallback([this, aclient, endpoint]() {
|
||||
SyncClient(aclient, endpoint, true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user