Skip to content

Commit 0e0880e

Browse files
committed
Fix cooldown
1 parent c3dbc56 commit 0e0880e

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/task

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/task/Task.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ abstract class Task<Result> : Nameable {
176176
runConcurrent {
177177
delay(cooldown.toLong())
178178
runGameScheduled {
179-
if (isRunning) finish(result)
179+
if (state == State.COOLDOWN) finish(result)
180180
}
181181
}
182182
} else finish(result)

0 commit comments

Comments
 (0)