diff options
| author | 2020-07-20 07:33:28 +0100 | |
|---|---|---|
| committer | 2020-07-20 07:36:44 +0100 | |
| commit | 90fb7c511fb6fc5c917d6738eca25961a52c8a9f (patch) | |
| tree | a64bce85570e572cc768a7f7d4abdfa89a526512 /src/modules/m_httpd.cpp | |
| parent | Split OnSetEndPoint into two events. (diff) | |
Fix the case of getError/getSendQSize and rewrite the doc comments.
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index ebd0404b5..7c7a0a5b7 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -211,10 +211,10 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru { via->iohookprovs.back()->OnAccept(this, client, server); // IOHook may have errored - if (!getError().empty()) + if (!GetError().empty()) { ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "HTTP socket %d encountered a hook error: %s", - GetFd(), getError().c_str()); + GetFd(), GetError().c_str()); Close(); return; } @@ -243,7 +243,7 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru void OnError(BufferedSocketError err) override { ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "HTTP socket %d encountered an error: %d - %s", - GetFd(), err, getError().c_str()); + GetFd(), err, GetError().c_str()); Close(); } |
