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
1 changed files with 2 additions and 1 deletions

View File

@ -407,7 +407,8 @@ void ApiListener::ApiTimerHandler(void)
if (endpoint->GetConnecting()) if (endpoint->GetConnecting())
continue; continue;
Utility::QueueAsyncCallback(boost::bind(&ApiListener::AddConnection, this, endpoint)); boost::thread thread(boost::bind(&ApiListener::AddConnection, this, endpoint));
thread.detach();
} }
} }
} }