From dfbda827313a3f626a1b25e8bac8b694fb1af90a Mon Sep 17 00:00:00 2001 From: osmarks Date: Fri, 29 Jan 2021 11:28:01 +0000 Subject: [PATCH] fix FD leaks --- src/onstat.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/onstat.nim b/src/onstat.nim index 665914f..ee4705b 100644 --- a/src/onstat.nim +++ b/src/onstat.nim @@ -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.} =