From c0f731622d471e69d1a769fbfa878e1a3702937f Mon Sep 17 00:00:00 2001 From: Andrey Tarbeev Date: Fri, 29 Jul 2022 17:29:11 +0300 Subject: [PATCH] Add restartIfNeeded in childprocess request --- .../main/kotlin/org/utbot/instrumentation/ConcreteExecutor.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/ConcreteExecutor.kt b/utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/ConcreteExecutor.kt index 3fb26e322a..bfe0b0d182 100644 --- a/utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/ConcreteExecutor.kt +++ b/utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/ConcreteExecutor.kt @@ -314,6 +314,7 @@ class ConcreteExecutor> p * @see [org.utbot.instrumentation.instrumentation.coverage.CoverageInstrumentation]. */ fun request(requestCmd: T, action: ((Protocol.Command) -> R)): R = runBlocking { + restartIfNeeded() awaitCommand(sendCommand(requestCmd), action) }