Await async websocket closure (#516)

This commit is contained in:
cybermaggedon 2025-09-11 15:58:51 +01:00 committed by GitHub
parent 6ff2d73c3d
commit 5f2097c063
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,7 +147,7 @@ class Mux:
self.running.stop()
if self.ws:
self.ws.close()
await self.ws.close()
self.ws = None
break
@ -165,6 +165,6 @@ class Mux:
self.running.stop()
if self.ws:
self.ws.close()
await self.ws.close()
self.ws = None