]> granicus.if.org Git - icinga2/commitdiff
Use a separate thread for TLS connection attempts
authorGunnar Beutner <gunnar@beutner.name>
Wed, 28 Jan 2015 07:35:36 +0000 (08:35 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 28 Jan 2015 07:35:36 +0000 (08:35 +0100)
fixes #8295

lib/remote/apilistener.cpp

index 25cadb9516d513e42d6a9c2dea3169dc0d7703fc..15ef5275c1d9decd99e41d57fbed3a33050febd8 100644 (file)
@@ -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();
                        }
                }
        }