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) }