mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Disable processing events when adding torrents. Closes #7436.
webUI connection timeout & deletion might occur while doing processEvents() and will result in use-after-free segfault.
This commit is contained in:
@@ -2217,8 +2217,6 @@ bool Session::findIncompleteFiles(TorrentInfo &torrentInfo, QString &savePath) c
|
|||||||
found = true;
|
found = true;
|
||||||
torrentInfo.renameFile(i, filePath + QB_EXT);
|
torrentInfo.renameFile(i, filePath + QB_EXT);
|
||||||
}
|
}
|
||||||
if ((i % 100) == 0)
|
|
||||||
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
|
|||||||
Reference in New Issue
Block a user