mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix saving torrent state on fresh configs
Do not try to call doIteration() on the reactor if it has already stopped
This commit is contained in:
parent
ef5739a6a8
commit
7d67da4371
3 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,11 @@
|
|||
==== GtkUI ====
|
||||
* Fix path errors when adding torrents externally in Windows
|
||||
* Fix localclient authentication by stripping the lines read from the auth file
|
||||
* Do not try to call doIteration() on the reactor if it has already stopped
|
||||
|
||||
==== Core ====
|
||||
* Fix saving torrent state on fresh configs
|
||||
|
||||
==== Misc ====
|
||||
* Add man pages for deluge-console and deluge-gtk
|
||||
|
||||
|
|
|
@ -132,6 +132,10 @@ class TorrentManager(component.Component):
|
|||
# Get the core config
|
||||
self.config = ConfigManager("core.conf")
|
||||
|
||||
# Make sure the state folder has been created
|
||||
if not os.path.exists(os.path.join(get_config_dir(), "state")):
|
||||
os.makedirs(os.path.join(get_config_dir(), "state"))
|
||||
|
||||
# Create the torrents dict { torrent_id: Torrent }
|
||||
self.torrents = {}
|
||||
|
||||
|
|
|
@ -233,7 +233,7 @@ class GtkUI(object):
|
|||
|
||||
# Process any pending gtk events since the mainloop has been quit
|
||||
if not deluge.common.windows_check():
|
||||
while gtk.events_pending():
|
||||
while gtk.events_pending() and reactor.running:
|
||||
reactor.doIteration(0)
|
||||
|
||||
# Shutdown all components
|
||||
|
|
Loading…
Add table
Reference in a new issue