fix FD leaks

This commit is contained in:
osmarks 2021-01-29 11:28:01 +00:00
parent 7136b827d3
commit dfbda82731

View File

@ -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.} =