Use std::thread in WebSocket (RIPD-236).

This commit is contained in:
Scott Schurr
2015-10-12 17:36:22 -07:00
committed by seelabs
parent e636669850
commit 4568c38597
3 changed files with 35 additions and 31 deletions

View File

@@ -138,9 +138,9 @@ boost::asio::io_service::strand& WebSocket04::getStrand (Connection& con)
template <>
void Server <WebSocket04>::listen()
{
m_endpoint->listen (desc_.port.ip, desc_.port.port);
m_endpoint->start_accept();
auto c = m_endpoint->get_io_service ().run ();
endpoint_->listen (desc_.port.ip, desc_.port.port);
endpoint_->start_accept();
auto c = endpoint_->get_io_service ().run ();
JLOG (j_.warning)
<< "Server run with: '" << c;