summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_httpd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index d6c943828..2606f77ad 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -92,9 +92,9 @@ class HttpSocket : public InspSocket
~HttpSocket()
{
- if (Instance->Time() < Timeout->GetTimer())
+ if (Timeout)
{
- if (Timeout)
+ if (Instance->Time() < Timeout->GetTimer())
Instance->Timers->DelTimer(Timeout);
Timeout = NULL;
}