mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Fixing RW connections deadlock on SQLite
Without this change we're getting a connection in the same thread we hold one already.
This commit is contained in:
parent
a3776c88bd
commit
c55ee85c5c
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class KeyValueStore {
|
||||||
final KeyValueEntry<T> key,
|
final KeyValueEntry<T> key,
|
||||||
final T value
|
final T value
|
||||||
) throws SQLException {
|
) throws SQLException {
|
||||||
final var entry = getEntry(key);
|
final var entry = getEntry(connection, key);
|
||||||
if (Objects.equals(entry, value)) {
|
if (Objects.equals(entry, value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue