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();
|
||||
|
||||
if (endpoint) {
|
||||
endpoint->AddClient(aclient);
|
||||
|
||||
if (need_sync) {
|
||||
{
|
||||
ObjectLock olock(endpoint);
|
||||
@ -312,8 +314,6 @@ void ApiListener::NewClientHandler(const Socket::Ptr& client, ConnectionRole rol
|
||||
}
|
||||
|
||||
SendConfigUpdate(aclient);
|
||||
|
||||
endpoint->AddClient(aclient);
|
||||
} else
|
||||
AddAnonymousClient(aclient);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user