fix FD leaks

This commit is contained in:
osmarks 2021-01-29 11:28:01 +00:00
parent 7136b827d3
commit dfbda82731
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ proc pollTarget(s: string): Future[Response] {.async.} =
discard await withTimeout(doFetch(), 10000)
except:
x = Response(rtype: rtFetchError, latency: 0)
client.close()
return x
proc pollTargets() {.async.} =