Skip to content

Commit 30eb701

Browse files
committed
1.3.1
1 parent 71ad74d commit 30eb701

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

MessageThrottle/MessageThrottle.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,9 @@ static void mt_handleInvocation(NSInvocation *invocation, MTRule *rule)
602602
if (now - rule.lastTimeRequest > rule.durationThreshold) {
603603
invocation.selector = rule.aliasSelector;
604604
[invocation invoke];
605+
rule.lastTimeRequest = now;
605606
dispatch_async(rule.messageQueue, ^{
606-
rule.lastTimeRequest = now;
607+
// May switch from other modes, set nil just in case.
607608
rule.lastInvocation = nil;
608609
});
609610
}

0 commit comments

Comments
 (0)