Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
自动持久化必须是类
  • Loading branch information
yulingtianxia committed Jul 31, 2018
1 parent 2275be4 commit 0fe24d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MessageThrottle/MessageThrottle.m
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ - (nullable MTRule *)mt_limitSelector:(SEL)selector oncePerDuration:(NSTimeInter
rule.mode = mode;
rule.messageQueue = messageQueue;
rule.alwaysInvokeBlock = alwaysInvokeBlock;
rule.persistent = (mode == MTPerformModeFirstly && durationThreshold > 5);
rule.persistent = (mode == MTPerformModeFirstly && durationThreshold > 5 && mt_object_isClass(self));
if (isNewRule) {
return [rule apply] ? rule : nil;
}
Expand Down

0 comments on commit 0fe24d2

Please sign in to comment.