mirror of https://github.com/Icinga/icinga2.git
parent
091d79ea4a
commit
88e1aadbf2
|
@ -407,7 +407,8 @@ void ApiListener::ApiTimerHandler(void)
|
|||
if (endpoint->GetConnecting())
|
||||
continue;
|
||||
|
||||
Utility::QueueAsyncCallback(boost::bind(&ApiListener::AddConnection, this, endpoint));
|
||||
boost::thread thread(boost::bind(&ApiListener::AddConnection, this, endpoint));
|
||||
thread.detach();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue