- Found a way not to use FullAllocationMode list in order to save memory in cpu

This commit is contained in:
Christophe Dumez 2007-08-29 14:30:30 +00:00
parent db6180b737
commit 27e76962d1
5 changed files with 16 additions and 24 deletions

View file

@ -589,10 +589,12 @@ void properties::savePiecesPriorities(){
pieces_file.write(misc::toQByteArray(priority)+"\n");
}
pieces_file.close();
if(hasFilteredFiles && !BTSession->inFullAllocationMode(hash)){
// If h.has_filtered_pieces() s true, then the torrent
// is already in full allocation mode, no need to
// reload it.
if(hasFilteredFiles && !h.has_filtered_pieces()){
BTSession->pauseAndReloadTorrent(h);
}
BTSession->loadFilesPriorities(h);
emit filteredFilesChanged(hash);
has_filtered_files = hasFilteredFiles;
}