Skip to content

Commit 9409997

Browse files
committed
bug fix
1 parent c1bcfff commit 9409997

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/kotlin/stageguard/sctimetable/utils/InteractiveConversationHelper.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ class InteractiveConversationBuilder(
174174
val calculatedTimeLimit = if(timeoutLimit == -2L) (if(UNLIMITED_TIME) Long.MAX_VALUE else timeoutLimitation) else (if(timeoutLimit == -1L) Long.MAX_VALUE else timeoutLimit)
175175
repeat(calculatedTryLimit) {
176176
val nextMsg = eventContext.nextMessage(calculatedTimeLimit)
177-
runCatching { if(checkBlock(nextMsg)) return mapBlock(nextMsg) }
177+
runCatching {
178+
if(checkBlock(nextMsg)) return mapBlock(nextMsg)
179+
}
178180
send("mismatched message.")
179181
}
180182
throw QuitConversationExceptions.IllegalInputException()

0 commit comments

Comments
 (0)