Changeset ed48c4
- Timestamp:
- 11/03/2015 11:36:26 AM (10 years ago)
- Branches:
- 2.0.x, develop, master
- Children:
- f500d7
- Parents:
- 1ff189
- git-author:
- Calum Lind <calumlind+deluge@gmail.com> (11/03/2015 11:36:14 AM)
- git-committer:
- Calum Lind <calumlind+deluge@gmail.com> (11/03/2015 11:36:26 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/core/torrentmanager.py
r1ff189 red48c4 648 648 649 649 def save_state(self): 650 """Save the state of the TorrentManager to the torrents.state file. 651 652 Returns: 653 bool: Always returns True so that the timer thread will continue. 654 655 """ 650 """Save the state of the TorrentManager to the torrents.state file.""" 656 651 state = self.create_state() 657 652 filename = "torrents.state" … … 683 678 log.info("Restoring backup of %s from: %s", filename, filepath_bak) 684 679 os.rename(filepath_bak, filepath) 685 return True686 680 687 681 def save_resume_data(self, torrent_ids=None, flush_disk_cache=False):
Note:
See TracChangeset
for help on using the changeset viewer.