diff --git a/examples/kotlin-matter-controller/java/src/com/matter/controller/commands/common/FutureResult.kt b/examples/kotlin-matter-controller/java/src/com/matter/controller/commands/common/FutureResult.kt index 11851825a7ea50..5fe4b5240dce3d 100644 --- a/examples/kotlin-matter-controller/java/src/com/matter/controller/commands/common/FutureResult.kt +++ b/examples/kotlin-matter-controller/java/src/com/matter/controller/commands/common/FutureResult.kt @@ -53,7 +53,7 @@ class FutureResult { } try { - lock.wait() + lock.wait(remainingTime) } catch (e: InterruptedException) { logger.log(Level.INFO, "Wait Result failed with exception: " + e.message) }