When closing the channel, no longer throw an exception

This commit is contained in:
nathan 2020-08-10 23:42:11 +02:00
parent 560c62c956
commit 9aa8c1041b

View File

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