diff --git a/packages/powersync/lib/src/powersync_database.dart b/packages/powersync/lib/src/powersync_database.dart index b8dc024e..ee7a8f75 100644 --- a/packages/powersync/lib/src/powersync_database.dart +++ b/packages/powersync/lib/src/powersync_database.dart @@ -155,7 +155,7 @@ class PowerSyncDatabase with SqliteQueries implements SqliteConnection { /// The connection is automatically re-opened if it fails for any reason. /// /// Status changes are reported on [statusStream]. - connect({required PowerSyncBackendConnector connector}) async { + Future connect({required PowerSyncBackendConnector connector}) async { await initialize(); // Disconnect if connected