2
0
mirror of https://github.com/qbittorrent/qBittorrent.git synced 2025-02-23 19:29:40 +08:00

Fix crash when aborting a torrent creation process. Closes .

The wait time wasn't long enough causing the thread to
terminate prematurely.
Also, to avoid crashing qbt entirely when creating a torrent for a very
big file, I decided to wait indefinitely here.
This commit is contained in:
Chocobo1 2017-11-21 18:29:22 +08:00
parent 034d71dce3
commit 433b5a46cf
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -67,7 +67,7 @@ TorrentCreatorThread::TorrentCreatorThread(QObject *parent)
TorrentCreatorThread::~TorrentCreatorThread()
{
requestInterruption();
wait(1000);
wait();
}
void TorrentCreatorThread::create(const QString &inputPath, const QString &savePath, const QStringList &trackers,