From 88e1aadbf2e7f86692afc58064598cb561c58edb Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 28 Jan 2015 08:35:36 +0100 Subject: [PATCH] Use a separate thread for TLS connection attempts fixes #8295 --- lib/remote/apilistener.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 25cadb951..15ef5275c 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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(); } } } -- 2.40.0