diff options
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 301e77e16..b44585ba6 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -86,9 +86,12 @@ class HttpSocket : public InspSocket ~HttpSocket() { - if (Timeout) - Instance->Timers->DelTimer(Timeout); - Timeout = NULL; + if (Instance->Time() < Timeout->GetTimer()) + { + if (Timeout) + Instance->Timers->DelTimer(Timeout); + Timeout = NULL; + } } virtual int OnIncomingConnection(int newsock, char* ip) |