Merge pull request #1962 from BlairDuncan/CPTimerMinimumInterval

Fixed: CPTimer number of seconds interval set to 0.1 if less than or equal to 0.0
This commit is contained in:
aparajita committed 2013-07-20 09:02:13 -07:00
commit 23d2a71649
1 file changed
+2 -2
+2 -2
View File
@@ -112,7 +112,7 @@
if (self)
{
_timeInterval = seconds;
_timeInterval = MAX(seconds,0.1);
_invocation = anInvocation;
_repeats = shouldRepeat;
_isValid = YES;
@@ -150,7 +150,7 @@
if (self)
{
_timeInterval = seconds;
_timeInterval = MAX(seconds,0.1);
_callback = aFunction;
_repeats = shouldRepeat;
_isValid = YES;