diff --git a/goblin/driver/connection.py b/goblin/driver/connection.py index 01015b327371a528dec3261fddf0bc00b14775e9..4f6d7e159316bd585ca00130467a01ada95c1440 100644 --- a/goblin/driver/connection.py +++ b/goblin/driver/connection.py @@ -181,7 +181,7 @@ class Connection(AbstractConnection): async def receive(self): data = await self._ws.receive() if data.tp == aiohttp.MsgType.close: - await ws.close() + await self._ws.close() elif data.tp == aiohttp.MsgType.error: raise data.data elif data.tp == aiohttp.MsgType.closed: