mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
da41725e5b
commit
883170a806
@ -301,6 +301,8 @@ void ApiListener::NewClientHandler(const Socket::Ptr& client, ConnectionRole rol
|
|||||||
aclient->Start();
|
aclient->Start();
|
||||||
|
|
||||||
if (endpoint) {
|
if (endpoint) {
|
||||||
|
endpoint->AddClient(aclient);
|
||||||
|
|
||||||
if (need_sync) {
|
if (need_sync) {
|
||||||
{
|
{
|
||||||
ObjectLock olock(endpoint);
|
ObjectLock olock(endpoint);
|
||||||
@ -312,8 +314,6 @@ void ApiListener::NewClientHandler(const Socket::Ptr& client, ConnectionRole rol
|
|||||||
}
|
}
|
||||||
|
|
||||||
SendConfigUpdate(aclient);
|
SendConfigUpdate(aclient);
|
||||||
|
|
||||||
endpoint->AddClient(aclient);
|
|
||||||
} else
|
} else
|
||||||
AddAnonymousClient(aclient);
|
AddAnonymousClient(aclient);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user