Lei Yu 1c95856977 Fix crash in anomaly job service
If job has been stopped by any reason, we should cancel the background
thread, otherwise it will throw SecurityException when dequeuing from
JobParams.

This CL adds a lock to synchronize the method and stops dequeue work
if job has been canceled.

Change-Id: I7732b7f7d444a55a4b4ba6645cd2c16b6f840a6c
Merged-In: I7732b7f7d444a55a4b4ba6645cd2c16b6f840a6c
Fixes: 77968649
Test: RunSettingsRoboTests
2018-04-26 15:23:33 -07:00
2018-04-26 15:23:33 -07:00
2018-04-20 12:52:29 -07:00
2015-04-13 09:21:39 -07:00
2017-10-13 15:59:03 -07:00
2018-04-20 12:52:29 -07:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%