diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_httpd.cpp | 7 |
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); } |