mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00: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:
parent
1da3437a4a
commit
f3603d05e7
@ -2217,8 +2217,6 @@ bool Session::findIncompleteFiles(TorrentInfo &torrentInfo, QString &savePath) c
|
||||
found = true;
|
||||
torrentInfo.renameFile(i, filePath + QB_EXT);
|
||||
}
|
||||
if ((i % 100) == 0)
|
||||
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
}
|
||||
|
||||
return found;
|
||||
|
Loading…
Reference in New Issue
Block a user