mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-02 03:42:36 +02:00
Fix/websocket close await (1.4) (#517)
* Vector stores will create collections on query (#511) * Return empty embeddings list as empty list through gateway (#513) * Await async websocket closure
This commit is contained in:
parent
f6bccd7438
commit
d73af56690
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