1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-13 05:41:17 +00:00

- Added h.is_valid check

This commit is contained in:
Christophe Dumez 2007-11-22 21:53:42 +00:00
parent 4f989b674f
commit def19ef88b

View File

@ -842,6 +842,10 @@ void bittorrent::saveFastResumeAndRatioData() {
QStringList hashes = getUnfinishedTorrents();
foreach(hash, hashes) {
QTorrentHandle h = getTorrentHandle(hash);
if(!h.is_valid()) {
qDebug("/!\\ Error: Invalid handle");
continue;
}
if(h.is_paused()) {
// Do not need to save fast resume data for paused torrents
continue;