mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 21:32:57 +00:00
* HTTPServer.{cpp,h}: cleanup
This commit is contained in:
1 parent
9bbff744e9
commit
48b3959cfb
2 files changed
+8
-14
No files matched your search
+8
-10
@@ -836,11 +836,10 @@ namespace http {
|
||||
{
|
||||
m_Acceptor.close();
|
||||
m_Service.stop ();
|
||||
if (m_Thread)
|
||||
{
|
||||
m_Thread->join ();
|
||||
m_Thread = nullptr;
|
||||
}
|
||||
if (m_Thread) {
|
||||
m_Thread->join ();
|
||||
m_Thread = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void HTTPServer::Run ()
|
||||
@@ -858,11 +857,10 @@ namespace http {
|
||||
void HTTPServer::HandleAccept(const boost::system::error_code& ecode,
|
||||
std::shared_ptr<boost::asio::ip::tcp::socket> newSocket)
|
||||
{
|
||||
if (!ecode)
|
||||
{
|
||||
CreateConnection(newSocket);
|
||||
Accept ();
|
||||
}
|
||||
if (ecode)
|
||||
return;
|
||||
CreateConnection(newSocket);
|
||||
Accept ();
|
||||
}
|
||||
|
||||
void HTTPServer::CreateConnection(std::shared_ptr<boost::asio::ip::tcp::socket> newSocket)
|
||||
|
||||
Reference in new issue
Block a user