Merge pull request #626 from majestrate/webui-freeze-fix

Webui freeze fix
This commit is contained in:
orignal 2016-09-04 18:47:09 -04:00 committed by GitHub
commit 4a56d6bf1c

View File

@ -828,7 +828,13 @@ namespace http {
std::shared_ptr<boost::asio::ip::tcp::socket> newSocket)
{
if (ecode)
{
if(newSocket) newSocket->close();
LogPrint(eLogError, "HTTP Server: error handling accept ", ecode.message());
if(ecode != boost::asio::error::operation_aborted)
Accept();
return;
}
CreateConnection(newSocket);
Accept ();
}