diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/executors/HostExecutor.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/executors/HostExecutor.kt index 095b22b450b..f46d3d0b09f 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/executors/HostExecutor.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/executors/HostExecutor.kt @@ -60,7 +60,7 @@ class HostExecutor : Executor { process.errorStream.close() }) - if (!process.waitFor(request.timeout.toLong(TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS)) { + if (!process.waitFor(request.timeout.inWholeMilliseconds, TimeUnit.MILLISECONDS)) { logger.warning("Timeout running $commandLine") // Cancel every stream, no need to wait for them. jobs.forEach {