- Fixed a problem that happened sometimes with torrents to pause after checking

This commit is contained in:
Christophe Dumez 2007-07-29 01:44:49 +00:00
parent e4fbf2107d
commit 620deb3b6a
2 changed files with 10 additions and 6 deletions

View file

@ -198,11 +198,11 @@ void bittorrent::pauseTorrent(QString hash){
QFile paused_file(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused");
paused_file.open(QIODevice::WriteOnly | QIODevice::Text);
paused_file.close();
int index = torrentsToPauseAfterChecking.indexOf(hash);
if(index != -1) {
torrentsToPauseAfterChecking.removeAt(index);
qDebug("A torrent was paused just after checking, good");
}
}
int index = torrentsToPauseAfterChecking.indexOf(hash);
if(index != -1) {
torrentsToPauseAfterChecking.removeAt(index);
qDebug("A torrent was paused just after checking, good");
}
}