mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 02:35:15 +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