Prevent saving the storing of state on every moment
This commit is contained in:
parent
00cf85ec01
commit
bb7020288d
1 changed files with 3 additions and 3 deletions
|
@ -1766,7 +1766,7 @@ class Story(object):
|
|||
# Test stability of Central Command with deliberate crash
|
||||
# if self.timer.getElapsed() > 10:
|
||||
# raise Exception("Test exception")
|
||||
if not self.timer.hasMark('state_save') or self.timer.getElapsed('state_save') > 5:
|
||||
if not self.timer.hasMark('state_save') or self.timer.getElapsed('state_save') > 45:
|
||||
self.storeState()
|
||||
self.timer.setMark('state_save')
|
||||
|
||||
|
@ -1863,8 +1863,8 @@ class Story(object):
|
|||
|
||||
self.logger.log(LOG_BS,logmsg)
|
||||
|
||||
if message.id != self.startMessage.id:
|
||||
self.storeState()
|
||||
# if message.id != self.startMessage.id:
|
||||
# self.storeState()
|
||||
|
||||
def fadeLightPreset(self, presetNr: int):
|
||||
if presetNr < 0 or presetNr > 4:
|
||||
|
|
Loading…
Reference in a new issue