summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-11-03 15:36:10 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-11-03 15:36:10 +0100
commit22963e585e20364f86bd41bcd6d99baaf56cc1fc (patch)
treed5cb9c1bd5bdc51731dd2f3e3daf8b6ce61ce5a1 /src
parent2f627235c3e115353dbe5484a1d93126c2e6175b (diff)
m_httpd Clean up HttpServerSocket constructor
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_httpd.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index a54f190eb..b81b14f8d 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -60,11 +60,12 @@ class HttpServerSocket : public BufferedSocket
const time_t createtime;
HttpServerSocket(int newfd, const std::string& IP, ListenSocket* via, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server)
- : BufferedSocket(newfd), ip(IP), postsize(0)
+ : BufferedSocket(newfd)
+ , InternalState(HTTP_SERVE_WAIT_REQUEST)
+ , ip(IP)
+ , postsize(0)
, createtime(ServerInstance->Time())
{
- InternalState = HTTP_SERVE_WAIT_REQUEST;
-
if (via->iohookprov)
via->iohookprov->OnAccept(this, client, server);
}