Module: deluge Branch: master Commit: 233e81454717f7932baf909cd6c8863d3530df6a
Author: Pedro Algarvio <[email protected]> Date: Fri Apr 22 11:33:45 2011 +0100 Late import twisted's reactor, it allows the gtk reactor to be proper installed. --- deluge/config.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/deluge/config.py b/deluge/config.py index 2e42fa5..482415c 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -72,7 +72,6 @@ import logging import shutil import os -from twisted.internet import reactor import deluge.common json = deluge.common.json @@ -220,6 +219,7 @@ what is currently in the config and it could not convert the value self.__config[key] = value # Run the set_function for this key if any + from twisted.internet import reactor try: for func in self.__set_functions[key]: reactor.callLater(0, func, key, value) @@ -288,6 +288,7 @@ what is currently in the config and it could not convert the value """ del self.__config[key] # We set the save_timer for 5 seconds if not already set + from twisted.internet import reactor if not self._save_timer or not self._save_timer.active(): self._save_timer = reactor.callLater(5, self.save) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
