stop applying changes on shutdown
This commit is contained in:
parent
46ee94813f
commit
66d6f475b2
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ class Changelog(db.Model):
|
|||
peer.save()
|
||||
|
||||
for change in changes:
|
||||
if state.shutdown:
|
||||
return False
|
||||
if user.id in state.removepeer:
|
||||
del state.removepeer[user.id]
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue