From be2945a16fb8ce9a1dfd996245bbeaefea63a28c Mon Sep 17 00:00:00 2001 From: Andrey Prygunkov Date: Sat, 23 Jun 2012 19:29:43 +0000 Subject: [PATCH] fixed a resource leak (socket) which could occur when an active download was deleted from queue --- Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connection.cpp b/Connection.cpp index d9a7bd58..6414f786 100644 --- a/Connection.cpp +++ b/Connection.cpp @@ -186,7 +186,7 @@ Connection::~Connection() { free(m_szHost); } - if (m_eStatus == csConnected && m_bAutoClose) + if (m_bAutoClose) { Disconnect(); }