fix FD leaks
This commit is contained in:
parent
7136b827d3
commit
dfbda82731
@ -131,6 +131,7 @@ proc pollTarget(s: string): Future[Response] {.async.} =
|
|||||||
discard await withTimeout(doFetch(), 10000)
|
discard await withTimeout(doFetch(), 10000)
|
||||||
except:
|
except:
|
||||||
x = Response(rtype: rtFetchError, latency: 0)
|
x = Response(rtype: rtFetchError, latency: 0)
|
||||||
|
client.close()
|
||||||
return x
|
return x
|
||||||
|
|
||||||
proc pollTargets() {.async.} =
|
proc pollTargets() {.async.} =
|
||||||
|
Loading…
Reference in New Issue
Block a user