diff options
| author | 2015-01-10 15:36:13 +0100 | |
|---|---|---|
| committer | 2015-01-10 15:36:13 +0100 | |
| commit | 682ab97e473b5325f5c5e0d0747a44df1aa33b9d (patch) | |
| tree | fe48ae12b13eb286fcaf8fd4af581aca259f5848 /src/inspsocket.cpp | |
| parent | Reduce std::string::substr() usage (diff) | |
Remove some unnecessary NULL checks
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 7 |
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) |
