Fix #319 do not crash when changing file priorities

This commit is contained in:
Andrew Resch 2008-07-04 19:37:21 +00:00
parent 135a3d75f1
commit 400e47aa80
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class Torrent:
def set_file_priorities(self, file_priorities):
log.debug("setting %s's file priorities: %s", self.torrent_id, file_priorities)
if len(file_priorities) != self.torrent_info.num_files():
if len(file_priorities) != len(self.files):
log.debug("file_priorities len != num_files")
return