cleanup in progress apply_changes on peer removal
This commit is contained in:
parent
ec50a04097
commit
8e3d8b5f8e
3 changed files with 19 additions and 8 deletions
|
|
@ -82,6 +82,10 @@ class Changelog(db.Model):
|
|||
def apply_changes(cls, user, changes):
|
||||
trigger = changes
|
||||
for change in changes:
|
||||
if user.id in state.removepeer:
|
||||
user.cleanup()
|
||||
del state.removepeer[user.id]
|
||||
return False
|
||||
if not cls.apply_change(user, change, trigger=False):
|
||||
logger.debug('FAIL %s', change)
|
||||
trigger = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue