Skip to content

Commit

Permalink
Fixed Crash on offline Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kalahel committed Jan 12, 2018
1 parent ae96e76 commit 805c96d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ public void handleReception(String textReceived) {
@Override
protected void onDestroy() {
super.onDestroy();
unbindService(mConnection);
mBound = false;
if(!MainMenuActivity.BRICKEST_OFFLINE_MODE) {
unbindService(mConnection);
mBound = false;
}
}
}

0 comments on commit 805c96d

Please sign in to comment.