1
0
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:
Chocobo1 2017-09-14 04:05:35 +08:00
parent 1da3437a4a
commit f3603d05e7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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;