From c55ee85c5c9fe13b0392777dae8a6af69accd48f Mon Sep 17 00:00:00 2001 From: Slayer Date: Tue, 14 Jan 2025 11:25:57 +0200 Subject: [PATCH] Fixing RW connections deadlock on SQLite Without this change we're getting a connection in the same thread we hold one already. --- .../asamk/signal/manager/storage/keyValue/KeyValueStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/keyValue/KeyValueStore.java b/lib/src/main/java/org/asamk/signal/manager/storage/keyValue/KeyValueStore.java index e5bbc1880..ac43c9c5c 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/keyValue/KeyValueStore.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/keyValue/KeyValueStore.java @@ -78,7 +78,7 @@ public boolean storeEntry( final KeyValueEntry key, final T value ) throws SQLException { - final var entry = getEntry(key); + final var entry = getEntry(connection, key); if (Objects.equals(entry, value)) { return false; }