This commit is contained in:
Tanguy 2023-05-23 16:14:59 +02:00
parent f7ec07d65c
commit 8a4ca96f02
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E

View File

@ -93,8 +93,7 @@ method write*(
method closeImpl*(s: WsStream): Future[void] {.async.} =
await s.session.close()
if not isNil(s.session.stream):
await s.session.stream.closeWait()
await s.session.stream.closeWait()
await procCall Connection(s).closeImpl()
method getWrapped*(s: WsStream): Connection = nil