Skip to content

Commit f532ba9

Browse files
committed
Fix deadlock in initialization
1 parent 54829bc commit f532ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/commonMain/kotlin/com/powersync/db/internal/InternalDatabaseImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal class InternalDatabaseImpl(
4343
withContext(dbContext) {
4444
runWrapped {
4545
pool.withAllConnections { writer, readers ->
46-
writeTransaction { tx ->
46+
writer.runTransaction { tx ->
4747
tx.getOptional(
4848
"SELECT powersync_replace_schema(?);",
4949
listOf(schemaJson),

0 commit comments

Comments
 (0)