make sure fault timer is cancelled on destroying sdserver

This commit is contained in:
Graham Jones
2020-11-06 21:03:42 +00:00
parent f0d66947cd
commit d2c35e29e4

View File

@@ -373,6 +373,14 @@ public class SdServer extends Service implements SdDataReceiver {
mCancelAudibleTimer = null;
}
// Stop the Fault timer
if (mFaultTimer != null) {
Log.v(TAG, "onDestroy(): cancelling fault timer");
mFaultTimer.cancel();
mFaultTimer = null;
}
// Stop the Cancel Alarm Latch timer
stopLatchTimer();