From f1d917d49e488ad614ee184ab7b4674e23c175bd Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 5 Oct 2020 18:26:02 +0200 Subject: [PATCH] Revert "try to fix "too many open files" error" This reverts commit 149ac0df06758bb447d5ac18e40ef3b089bce568. --- asyncutils.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/asyncutils.nim b/asyncutils.nim index 02bf50d..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.unregister() else: successEvent.trigger() - failureEvent.unregister() let flowVar = spawn execCmdBackground(successEvent, failureEvent, command) proc successCallback(fd: AsyncFD): bool = future.complete(^flowVar)