mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Use QThread::requestInterruption() instead of m_abort flag
This commit is contained in:
@@ -86,16 +86,8 @@ TorrentCreatorDlg::~TorrentCreatorDlg()
|
||||
{
|
||||
saveSettings();
|
||||
|
||||
// End torrent creation thread
|
||||
if (m_creatorThread) {
|
||||
if (m_creatorThread->isRunning()) {
|
||||
m_creatorThread->abortCreation();
|
||||
m_creatorThread->terminate();
|
||||
// Wait for termination
|
||||
m_creatorThread->wait();
|
||||
}
|
||||
if (m_creatorThread)
|
||||
delete m_creatorThread;
|
||||
}
|
||||
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user