Revert "try to fix "too many open files" error"

This reverts commit f0ec192e8d.
This commit is contained in:
Christian Ulrich 2020-10-05 18:06:57 +02:00
parent f0ec192e8d
commit 1719e07c97
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 0 additions and 2 deletions

View File

@ -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)