From 1719e07c97649477ea876f9e2f1b61811669b06c Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 5 Oct 2020 18:06:57 +0200 Subject: [PATCH] Revert "try to fix "too many open files" error" This reverts commit f0ec192e8d20249a21cf5de9948b6246fb2f68dd. --- asyncutils.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/asyncutils.nim b/asyncutils.nim index 6339fc6..51baf95 100644 --- a/asyncutils.nim +++ b/asyncutils.nim @@ -34,10 +34,8 @@ proc asyncExecCmd*(command: string): Future[string] = (result, exitCode) = execCmdEx(command) if exitCode != 0: failureEvent.trigger() - successEvent.close() else: successEvent.trigger() - failureEvent.close() let flowVar = spawn execCmdBackground(successEvent, failureEvent, command) proc successCallback(fd: AsyncFD): bool = future.complete(^flowVar)