Skip to content

Commit

Permalink
update DaiSurvivor
Browse files Browse the repository at this point in the history
  • Loading branch information
DaidoujiChen committed May 5, 2015
1 parent d9cafbe commit a6165b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e-Hentai/ThirdParty/DaiSurvivor/DaiSurvivor.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ - (void)handleEnterBackground {
if (!weakSelf.isEnterBackground) {
break;
}

if (weakSelf.backgroundTimeRemaining < 30.0f && !weakSelf.isUpdatingLocation) {
if (weakSelf.backgroundTimeRemaining < 30.0f && !weakSelf.isUpdatingLocation && weakSelf.isNeedAliveInBackground()) {
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf requestUpdatingLocation];
});
Expand Down

0 comments on commit a6165b0

Please sign in to comment.