outposts: fix error on outpost disconnect
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
56f1204c9b
commit
590c7f4c9d
|
@ -65,6 +65,7 @@ class OutpostConsumer(AuthJsonConsumer):
|
|||
def disconnect(self, close_code):
|
||||
if self.outpost and self.last_uid:
|
||||
state = OutpostState.for_instance_uid(self.outpost, self.last_uid)
|
||||
if self.channel_name in state.channel_ids:
|
||||
state.channel_ids.remove(self.channel_name)
|
||||
state.save()
|
||||
LOGGER.debug(
|
||||
|
|
Reference in New Issue