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

View File

@ -93,6 +93,8 @@ 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 procCall Connection(s).closeImpl()
method getWrapped*(s: WsStream): Connection = nil