fix upload not aborted on service destroy
This commit is contained in:
parent
5cac2ce0e6
commit
baea766d5e
|
@ -890,6 +890,9 @@ public abstract class DfuBaseService extends IntentService implements DfuProgres
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
|
if (mDfuServiceImpl != null)
|
||||||
|
mDfuServiceImpl.abort();
|
||||||
|
|
||||||
final LocalBroadcastManager manager = LocalBroadcastManager.getInstance(this);
|
final LocalBroadcastManager manager = LocalBroadcastManager.getInstance(this);
|
||||||
manager.unregisterReceiver(mDfuActionReceiver);
|
manager.unregisterReceiver(mDfuActionReceiver);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue