mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
parent
94e9e9fdb2
commit
4f2ac34440
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,6 @@ TorrentFilesWatcher::~TorrentFilesWatcher()
|
|||
{
|
||||
m_ioThread->quit();
|
||||
m_ioThread->wait();
|
||||
delete m_asyncWorker;
|
||||
}
|
||||
|
||||
void TorrentFilesWatcher::initWorker()
|
||||
|
@ -282,6 +281,7 @@ void TorrentFilesWatcher::initWorker()
|
|||
connect(m_asyncWorker, &TorrentFilesWatcher::Worker::torrentFound, this, &TorrentFilesWatcher::onTorrentFound);
|
||||
|
||||
m_asyncWorker->moveToThread(m_ioThread);
|
||||
connect(m_ioThread, &QThread::finished, m_asyncWorker, &QObject::deleteLater);
|
||||
m_ioThread->start();
|
||||
|
||||
for (auto it = m_watchedFolders.cbegin(); it != m_watchedFolders.cend(); ++it)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue