Try to finish data delivery in onDestroy for RecognitionService

Test: manual
Fixes: 192275399
Change-Id: I56b2e59f80da3e4c6f59236637ec32c1aff1a50a
This commit is contained in:
Nate Myren
2021-06-30 12:02:16 -07:00
parent c2a780dbd6
commit 0b234cf922

View File

@@ -259,6 +259,7 @@ public abstract class RecognitionService extends Service {
@Override
public void onDestroy() {
if (DBG) Log.d(TAG, "onDestroy");
finishDataDelivery();
mCurrentCallback = null;
mBinder.clearReference();
super.onDestroy();