remove redundant ws close

This commit is contained in:
wh1te909
2023-05-17 07:07:52 +00:00
parent 929ec20365
commit 6079332dda
2 changed files with 1 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class SendCMD(AsyncJsonWebsocketConsumer):
await self.send_json({"ret": ret})
async def disconnect(self, _):
await self.close()
pass
def _has_perm(self, perm: str) -> bool:
if self.user.is_superuser or (

View File

@@ -27,7 +27,6 @@ class DashInfo(AsyncJsonWebsocketConsumer):
self.dash_info.cancel()
self.connected = False
await self.close()
async def receive_json(self, payload, **kwargs):
pass