Use a separate thread for TLS connection attempts

fixes #8295
This commit is contained in:
Gunnar Beutner 2015-01-28 08:35:36 +01:00
parent 091d79ea4a
commit 88e1aadbf2

View 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();
}
}
}