Correct issue with detecting if app is in foreground

This commit is contained in:
Gregory John Casamento 2020-02-11 06:11:43 -05:00
parent 5b96ad6692
commit 9953d7d132
2 changed files with 26 additions and 4 deletions

View file

@ -115,7 +115,7 @@ static int _clients = 0;
[_engine start];
}
_blocking = [[NSMutableArray alloc] initWithCapacity: 10]; // 10 seems reasonable...
_blocking = [[NSMutableArray alloc] initWithCapacity: 10];
return self;
}
@ -140,7 +140,7 @@ static int _clients = 0;
- (BOOL) isBlocking: (NSString *)s
{
return [[_blocking firstObject] isEqualToString: s];
return [[_blocking lastObject] isEqualToString: s];
}
@end