Change watchdog timer to 2 minutes

am: 913c890c5f

Change-Id: I8bd956f47489c53433a43bbe3a135bcda155a698
This commit is contained in:
Fred Gylys-Colwell
2017-10-06 20:40:33 +00:00
committed by android-build-merger
2 changed files with 2 additions and 1 deletions

View File

@@ -494,7 +494,7 @@ class WatchDog {
pthread_mutex_lock(&mutex_);
struct timespec time_to_giveup;
clock_gettime(CLOCK_REALTIME, &time_to_giveup);
time_to_giveup.tv_sec += 5; // wait 5 seconds.
time_to_giveup.tv_sec += 120; // wait 2 minutes.
if (running_) {
pthread_cond_timedwait(&condition_, &mutex_, &time_to_giveup);
}
@@ -609,6 +609,7 @@ class Adapter {
wvcdm::metrics::OEMCrypto_INITIALIZED_FORCING_L3);
return result;
}
LOGI("L3 Initialized. Trying L1.");
std::string library_name;
if (!wvcdm::Properties::GetOEMCryptoPath(&library_name)) {
LOGW("L1 library not specified. Falling back to L3");