mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Stop async worker at correct place
This commit is contained in:
@@ -627,6 +627,8 @@ SessionImpl::~SessionImpl()
|
|||||||
// we delete lt::session
|
// we delete lt::session
|
||||||
delete Net::PortForwarder::instance();
|
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->clear();
|
||||||
m_asyncWorker->waitForDone();
|
m_asyncWorker->waitForDone();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user