summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 886130f1b..d3ee7538b 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -475,11 +475,8 @@ void BufferedSocket::DoWrite()
BufferedSocket::~BufferedSocket()
{
this->Close();
- if (Timeout)
- {
- // The timer is removed from the TimerManager in Timer::~Timer()
- delete Timeout;
- }
+ // The timer is removed from the TimerManager in Timer::~Timer()
+ delete Timeout;
}
void StreamSocket::HandleEvent(EventType et, int errornum)