remove redundant ws close
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user