mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-26 05:32:05 +00: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
@ -52,6 +52,9 @@ ReverseResolution::ReverseResolution(QObject *parent)
|
|||||||
|
|
||||||
ReverseResolution::~ReverseResolution()
|
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)
|
void ReverseResolution::resolve(const QHostAddress &ip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user