Fixed some crashes when resetting bluetooth server
This commit is contained in:
parent
de917efda4
commit
d21697a31a
3 changed files with 32 additions and 13 deletions
|
|
@ -305,7 +305,7 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
@Override
|
||||
protected void onDestroy() {
|
||||
if(executor != null){
|
||||
executor.terminate();
|
||||
executor.terminateNonBlock();
|
||||
executor.reset();
|
||||
executor = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue