fix: notice

This commit is contained in:
AdrienLSH 2024-05-15 16:43:29 +02:00
parent 71c313a078
commit ac1e2151a9

View File

@ -89,5 +89,6 @@ class NoticeConsumer(WebsocketConsumer):
notice_manager.add(self) notice_manager.add(self)
def disconnect(self, code): def disconnect(self, code):
notice_manager.remove(self) if self.scope['user'].is_authenticated:
notice_manager.remove(self)
super().disconnect(code) super().disconnect(code)