Merge pull request #126 from lady-technologies/97-fix-kill-app
fix upload not aborted on service destroy
This commit is contained in:
commit
e9254224be
|
@ -890,6 +890,9 @@ public abstract class DfuBaseService extends IntentService implements DfuProgres
|
|||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
if (mDfuServiceImpl != null)
|
||||
mDfuServiceImpl.abort();
|
||||
|
||||
final LocalBroadcastManager manager = LocalBroadcastManager.getInstance(this);
|
||||
manager.unregisterReceiver(mDfuActionReceiver);
|
||||
|
||||
|
|
Loading…
Reference in New Issue