Fix: release lock in UserHistoryDictionary.

Change-Id: I050c252910c6b5b0a79cd2d52c525679f2d6091d
main
Keisuke Kuroynagi 2013-07-04 23:12:49 +09:00
parent 2402513556
commit 65db026265
1 changed files with 5 additions and 1 deletions

View File

@ -320,7 +320,11 @@ public final class UserHistoryDictionary extends ExpandableDictionary {
mUserHistoryDictionary.mBigramListLock.unlock();
}
} else if (mUserHistoryDictionary.mBigramListLock.tryLock()) {
doWriteTaskLocked();
try {
doWriteTaskLocked();
} finally {
mUserHistoryDictionary.mBigramListLock.unlock();
}
}
return null;
}