stop applying changes on shutdown

This commit is contained in:
j 2016-02-04 18:42:37 +05:30
parent 46ee94813f
commit 66d6f475b2
1 changed files with 2 additions and 0 deletions

View File

@ -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