Ticket #1341: commit-5d39d2d

File commit-5d39d2d, 766 bytes (added by elberet, 14 years ago)
Line 
1commit 5d39d2dc57d9f73db180365aa5773ad915b813fe
2Author: Jens Maier <jens@elberet.de>
3Date: Sat Aug 14 14:29:20 2010 +0200
4
5 Fix bug in Config: _save_timer may be None when config is saved.
6
7diff --git a/deluge/config.py b/deluge/config.py
8index 5a6202d..74083b2 100644
9--- a/deluge/config.py
10+++ b/deluge/config.py
11@@ -399,7 +399,8 @@ def save(self, filename=None):
12
13 if self.__config == loaded_data and self.__version == version:
14 # The config has not changed so lets just return
15- self._save_timer.cancel()
16+ if self._save_timer:
17+ self._save_timer.cancel()
18 return
19 except Exception, e:
20 log.warning("Unable to open config file: %s", filename)