mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Fix some typos in my previous commits
This commit is contained in:
parent
533228ff5e
commit
a27b479f06
2 changed files with 2 additions and 2 deletions
|
@ -804,7 +804,7 @@ class TorrentManager(component.Component):
|
||||||
log.info("Saving the %s at: %s", filename, filepath)
|
log.info("Saving the %s at: %s", filename, filepath)
|
||||||
try:
|
try:
|
||||||
with open(filepath, "wb") as _file:
|
with open(filepath, "wb") as _file:
|
||||||
_file.write(lt.bencode(self.session.save_state()))
|
_file.write(lt.bencode(self.resume_data))
|
||||||
_file.flush()
|
_file.flush()
|
||||||
os.fsync(_file.fileno())
|
os.fsync(_file.fileno())
|
||||||
except (IOError, EOFError) as ex:
|
except (IOError, EOFError) as ex:
|
||||||
|
|
|
@ -260,7 +260,7 @@ class FilesTab(Tab):
|
||||||
save_pickled_state_file("files_tab.state", state)
|
save_pickled_state_file("files_tab.state", state)
|
||||||
|
|
||||||
def load_state(self):
|
def load_state(self):
|
||||||
state = load_pickled_state_file("files_tabs.state")
|
state = load_pickled_state_file("files_tab.state")
|
||||||
|
|
||||||
if state == None:
|
if state == None:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue