mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix crash when aborting a torrent creation process. Closes #7783.
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:
parent
034d71dce3
commit
433b5a46cf
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue