@Throws(InterruptedException::class) fun stopProcess() { latch.await() if (this.process != null) { println("ProcessThread.stopProcess() will kill process") this.process.destroy() } }
Stops the process .