mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-17 21:41:49 +03:00
- Added h.is_valid check
This commit is contained in:
parent
4f989b674f
commit
def19ef88b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue