Skip to content

Commit b6e7131

Browse files
committed
check breakCooldown before start breaking
1 parent 6689f03 commit b6e7131

File tree

1 file changed

+1
-0
lines changed
  • common/src/main/kotlin/com/lambda/interaction/request/breaking

1 file changed

+1
-0
lines changed

common/src/main/kotlin/com/lambda/interaction/request/breaking/BreakManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ object BreakManager : RequestHandler<BreakRequest>(
535535
}
536536
else -> {}
537537
}
538+
if (breakCooldown > 0) return false
538539
if (!startBreaking(info)) {
539540
info.nullify()
540541
info.internalOnCancel()

0 commit comments

Comments
 (0)