Skip to content

Commit

Permalink
fix: unexpected ws closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Damego committed Jul 22, 2023
1 parent 64a46c3 commit 66a5102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anilibria/api/gateway/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def connect(self):
async def _receive_data(self) -> dict | WSMessage:
response = await self._connection.receive()

if response.type is WSMsgType.CLOSING:
if response.type in {WSMsgType.CLOSING, WSMsgType.CLOSED}:
self._closed = True
return response

Expand Down

0 comments on commit 66a5102

Please sign in to comment.