From 9aa8c1041bb623b94c8eaade4d96ee1b81283391 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 10 Aug 2020 23:42:11 +0200 Subject: [PATCH] When closing the channel, no longer throw an exception --- src/dorkbox/executor/DeferredProcessResult.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/executor/DeferredProcessResult.kt b/src/dorkbox/executor/DeferredProcessResult.kt index 0f6629a..d1abdc6 100644 --- a/src/dorkbox/executor/DeferredProcessResult.kt +++ b/src/dorkbox/executor/DeferredProcessResult.kt @@ -417,7 +417,7 @@ class DeferredProcessResult internal constructor(private val process: Process, } } - channel.close(IOException("Channel closed")) + channel.close() // we have a new output, since we had to read it from the async channel SyncProcessResult(process.pid(), exitCode, out.toByteArray())