Fix deleting old .fastresume files with fresh configs

This commit is contained in:
Andrew Resch 2009-11-05 03:44:46 +00:00
commit baa177a1b1

View file

@ -298,7 +298,7 @@ class TorrentManager(component.Component):
def legacy_delete_resume_data(self, torrent_id):
"""Deletes the .fastresume file"""
path = os.path.join(self.config["state_location"],
path = os.path.join(get_config_dir(), "state",
torrent_id + ".fastresume")
log.debug("Deleting fastresume file: %s", path)
try: