mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +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,6 +2,10 @@
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* Fix path errors when adding torrents externally in Windows
|
* Fix path errors when adding torrents externally in Windows
|
||||||
* Fix localclient authentication by stripping the lines read from the auth file
|
* 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 ====
|
==== Misc ====
|
||||||
* Add man pages for deluge-console and deluge-gtk
|
* Add man pages for deluge-console and deluge-gtk
|
||||||
|
|
|
@ -132,6 +132,10 @@ class TorrentManager(component.Component):
|
||||||
# Get the core config
|
# Get the core config
|
||||||
self.config = ConfigManager("core.conf")
|
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 }
|
# Create the torrents dict { torrent_id: Torrent }
|
||||||
self.torrents = {}
|
self.torrents = {}
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ class GtkUI(object):
|
||||||
|
|
||||||
# Process any pending gtk events since the mainloop has been quit
|
# Process any pending gtk events since the mainloop has been quit
|
||||||
if not deluge.common.windows_check():
|
if not deluge.common.windows_check():
|
||||||
while gtk.events_pending():
|
while gtk.events_pending() and reactor.running:
|
||||||
reactor.doIteration(0)
|
reactor.doIteration(0)
|
||||||
|
|
||||||
# Shutdown all components
|
# Shutdown all components
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue