Fix issue where the save_timer is cancelled when it's not active
This commit is contained in:
parent
b9336889f5
commit
b41aa808be
|
@ -398,7 +398,7 @@ what is currently in the config and it could not convert the value
|
||||||
loaded_data = json.loads(data[start:end])
|
loaded_data = json.loads(data[start:end])
|
||||||
if self.__config == loaded_data and self.__version == version:
|
if self.__config == loaded_data and self.__version == version:
|
||||||
# The config has not changed so lets just return
|
# 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()
|
self._save_timer.cancel()
|
||||||
return
|
return
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
|
|
Loading…
Reference in New Issue