Skip to content

Commit

Permalink
fix(generic): proper api call
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Sep 9, 2024
1 parent 1747ac7 commit c443c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/src/wslink/backends/generic/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def on_connect(self, ws):
async def on_close(self, ws):
self.closed = True
if self._ws == ws:
ws.disconnect(self.client_id)
await ws.disconnect(self.client_id)
self._ws = None

async def send_str(self, value):
Expand All @@ -71,7 +71,7 @@ async def disconnect(self, client_or_id):
)
if client_or_id in self.connections:
client = self.connections.pop(client_or_id)
await client.onClose(client_or_id)
await client.on_close(client_or_id)


class GenericServer(AbstractWebApp):
Expand Down

0 comments on commit c443c74

Please sign in to comment.