When closing the channel, no longer throw an exception
This commit is contained in:
parent
560c62c956
commit
9aa8c1041b
|
@ -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
|
// we have a new output, since we had to read it from the async channel
|
||||||
SyncProcessResult(process.pid(), exitCode, out.toByteArray())
|
SyncProcessResult(process.pid(), exitCode, out.toByteArray())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user