From 1bbe35d493556fd7e6bc2b0b7df3ea888fae8b74 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 25 Dec 2006 20:32:37 +0000 Subject: Fix m_httpd always crashing in destructor if no active Timeout. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6112 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3