Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure mService exists when we call start or stop #17

Merged
merged 3 commits into from
Sep 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make sure mService exists when we call start or stop
ivosabev committed Sep 25, 2018
commit 8ef44b5ea0dd9678aa52411ff934ac09f1890553
Original file line number Diff line number Diff line change
@@ -519,14 +519,18 @@ public void registerHeadlessTask(final String jsFunction) {
private void startBackgroundService() {
logger.info("Attempt to start bg service");
synchronized (mLock) {
mService.start();
if (mService != null) {
mService.start();
}
}
}

private void stopBackgroundService() {
logger.info("Attempt to stop bg service");
synchronized (mLock) {
mService.stop();
if (mService != null) {
mService.stop();
}
}
}