From 22963e585e20364f86bd41bcd6d99baaf56cc1fc Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 3 Nov 2014 15:36:10 +0100 Subject: m_httpd Clean up HttpServerSocket constructor --- src/modules/m_httpd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modules') 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); } -- cgit v1.2.3