diff options
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 08b8f4cd6..d8d4438fe 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -241,7 +241,7 @@ void InspSocket::Close() int save = errno; if (this->fd > -1) { - if (this->IsIOHooked && Instance->Config->GetIOHook(this)) + if (this->IsIOHooked && Instance->Config->GetIOHook(this)) { try { @@ -551,6 +551,11 @@ void InspSocket::OnClose() { return; } InspSocket::~InspSocket() { this->Close(); + if (Timeout) + { + Instance->Timers->DelTimer(Timeout); + Timeout = NULL; + } } void InspSocket::HandleEvent(EventType et, int errornum) |