From 66d6f475b2661bf57b7058f8e444337a92febdfe Mon Sep 17 00:00:00 2001 From: j Date: Thu, 4 Feb 2016 18:42:37 +0530 Subject: [PATCH] stop applying changes on shutdown --- oml/changelog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/changelog.py b/oml/changelog.py index b0356af..50446ff 100644 --- a/oml/changelog.py +++ b/oml/changelog.py @@ -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