mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user