Browse Source

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.
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
433b5a46cf
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/torrentcreatorthread.cpp

2
src/base/bittorrent/torrentcreatorthread.cpp

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

Loading…
Cancel
Save