Module: deluge Branch: master Commit: db9b5580d7fe3d8a837569c570e780ae517b6691
Author: Andrew Resch <[email protected]> Date: Sat Aug 21 12:53:21 2010 -0700 Fix issue where the save_timer is cancelled when it's not active --- deluge/config.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/config.py b/deluge/config.py index f7ad405..c2e7604 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -398,7 +398,7 @@ what is currently in the config and it could not convert the value loaded_data = json.loads(data[start:end]) if self.__config == loaded_data and self.__version == version: # The config has not changed so lets just return - if self._save_timer: + if self._save_timer and self._save_timer.active(): self._save_timer.cancel() return except IOError, e: -- 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.
