Skip to content

Commit 9536037

Browse files
committed
Always disconnecting on close.
1 parent 2d0d013 commit 9536037

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

PowerSync/PowerSync.Common/Client/PowerSyncDatabase.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,14 @@ await Database.WriteTransaction(async tx =>
388388
/// Once close is called, this connection cannot be used again - a new one
389389
/// must be constructed.
390390
/// </summary>
391-
public async Task Close(bool disconnect = true)
391+
public new async Task Close()
392392
{
393393
await WaitForReady();
394394

395395
if (Closed) return;
396396

397-
if (disconnect)
398-
{
399-
await Disconnect();
400-
}
401397

398+
await Disconnect();
402399
base.Close();
403400
syncStreamImplementation?.Close();
404401
BucketStorageAdapter?.Close();

0 commit comments

Comments
 (0)