mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-27 15:39:37 +02:00
Await async websocket closure (#516)
This commit is contained in:
parent
6ff2d73c3d
commit
5f2097c063
1 changed files with 2 additions and 2 deletions
|
|
@ -147,7 +147,7 @@ class Mux:
|
||||||
self.running.stop()
|
self.running.stop()
|
||||||
|
|
||||||
if self.ws:
|
if self.ws:
|
||||||
self.ws.close()
|
await self.ws.close()
|
||||||
self.ws = None
|
self.ws = None
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
@ -165,6 +165,6 @@ class Mux:
|
||||||
self.running.stop()
|
self.running.stop()
|
||||||
|
|
||||||
if self.ws:
|
if self.ws:
|
||||||
self.ws.close()
|
await self.ws.close()
|
||||||
self.ws = None
|
self.ws = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue