1
mirror of https://github.com/qbittorrent/qBittorrent synced 2024-10-22 06:11:55 +02:00

Stop async worker at correct place

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-12-04 18:45:34 +03:00
parent b335114219
commit 40258f6a2f
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -627,6 +627,8 @@ SessionImpl::~SessionImpl()
// we delete lt::session
delete Net::PortForwarder::instance();
// We must stop "async worker" only after deletion
// of all the components that could potentially use it
m_asyncWorker->clear();
m_asyncWorker->waitForDone();