From 6642e6e1cf6e1cc3f9efc4b5cf76e62f56328482 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 16 Aug 2015 18:07:59 -0700 Subject: [PATCH] Fix cooldown regression from c399eff09ebc1faaf46a177f8824de0fd538ebfa. --- src/Posting/QR.cooldown.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Posting/QR.cooldown.coffee b/src/Posting/QR.cooldown.coffee index d1f1a7f21..26f7e7f10 100644 --- a/src/Posting/QR.cooldown.coffee +++ b/src/Posting/QR.cooldown.coffee @@ -28,12 +28,13 @@ QR.cooldown = for type, delay of QR.cooldown.delays when type not in ['thread', 'thread_global'] QR.cooldown.maxDelay = Math.max QR.cooldown.maxDelay, delay + QR.cooldown.isSetup = true QR.cooldown.start() start: -> {data} = QR.cooldown return unless ( - QR.cooldown.delays and + QR.cooldown.isSetup and !QR.cooldown.isCounting and Object.keys(data[g.BOARD.ID] or {}).length + Object.keys(data.global or {}).length > 0 )