mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Manually abort lookup on class destruction
Some lookup might take longer so instead of waiting them, we abort them manually.
This commit is contained in:
parent
86e3d0d816
commit
a2ebd77eac
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ ReverseResolution::ReverseResolution(QObject *parent)
|
|||
|
||||
ReverseResolution::~ReverseResolution()
|
||||
{
|
||||
// abort on-going lookups instead of waiting them
|
||||
for (auto iter = m_lookups.cbegin(); iter != m_lookups.cend(); ++iter)
|
||||
QHostInfo::abortHostLookup(iter.key());
|
||||
}
|
||||
|
||||
void ReverseResolution::resolve(const QHostAddress &ip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue