mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix: release lock in UserHistoryDictionary.
Change-Id: I050c252910c6b5b0a79cd2d52c525679f2d6091d
This commit is contained in:
parent
2402513556
commit
65db026265
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user