mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Stop async worker at correct place
This commit is contained in:
parent
b335114219
commit
40258f6a2f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue