Skip to content

Commit 94b7b95

Browse files
fix late initialization error
1 parent ce5cef0 commit 94b7b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/native/database/native_sqlite_connection_impl.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class SqliteConnectionImpl
4242
this.readOnly = false,
4343
bool primary = false})
4444
: _writeMutex = mutex {
45+
isInitialized = _isolateClient.ready;
4546
this.upstreamPort = upstreamPort ?? listenForEvents();
4647
// Accept an incoming stream of updates, or expose one if not given.
4748
this.updates = updates ?? updatesController.stream;
@@ -88,7 +89,6 @@ class SqliteConnectionImpl
8889
paused: true);
8990
_isolateClient.tieToIsolate(_isolate);
9091
_isolate.resume(_isolate.pauseCapability!);
91-
isInitialized = _isolateClient.ready;
9292
await _isolateClient.ready;
9393
});
9494
}

0 commit comments

Comments
 (0)