Skip to content

Commit

Permalink
Fix reversed logic on service shutdown preventing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgyoung committed Dec 20, 2018
1 parent 68c0411 commit ca6fd02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public void onDestroy() {
LogManager.i(TAG, "onDestroy called. stopping scanning");
handler.removeCallbacksAndMessages(null);

if (mScanHelper.getCycledScanner() == null) {
if (mScanHelper.getCycledScanner() != null) {
mScanHelper.getCycledScanner().stop();
mScanHelper.getCycledScanner().destroy();
}
Expand Down

0 comments on commit ca6fd02

Please sign in to comment.