Fixed some crashes when resetting bluetooth server

This commit is contained in:
Ziver Koc 2015-02-04 17:34:08 +01:00
parent de917efda4
commit d21697a31a
3 changed files with 32 additions and 13 deletions

View file

@ -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;
}