mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-07 16:13:07 +00:00
Release the HTTP sessions
This commit is contained in:
parent
5a28176080
commit
97ba55bbf6
@ -117,3 +117,7 @@ proc connect*(client: RpcHttpClient, address: string, port: Port, secure: bool)
|
||||
client.httpAddress = res
|
||||
else:
|
||||
raise newException(RpcAddressUnresolvableError, res.error)
|
||||
|
||||
method close*(client: RpcHttpClient) {.async.} =
|
||||
if not client.httpSession.isNil:
|
||||
await client.httpSession.closeWait()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user