diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 18644a370..b909e67a6 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -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();