]> nmode's Git Repositories - signal-cli/commitdiff
Fixing RW connections deadlock on SQLite
authorSlayer <dukhaSlayer@pm.me>
Tue, 14 Jan 2025 09:25:57 +0000 (11:25 +0200)
committerSebastian Scheibner <asamk@gmx.de>
Tue, 14 Jan 2025 11:21:12 +0000 (12:21 +0100)
Without this change we're getting a connection in the same thread we hold one already.

lib/src/main/java/org/asamk/signal/manager/storage/keyValue/KeyValueStore.java

index e5bbc1880c6c7476cc21931e8e7e7199843ce422..ac43c9c5c3c831751edf7ee52f362a1fd18766ae 100644 (file)
@@ -78,7 +78,7 @@ public class KeyValueStore {
             final KeyValueEntry<T> key,
             final T value
     ) throws SQLException {
-        final var entry = getEntry(key);
+        final var entry = getEntry(connection, key);
         if (Objects.equals(entry, value)) {
             return false;
         }