From b9d041d005b4d8733a424615c61333e7db05d930 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 19 May 2020 08:05:17 +0000 Subject: [PATCH] close database konditional --- lib/src/client.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 2b6ab05..aec5293 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -2181,9 +2181,9 @@ class Client { /// Stops the synchronization and closes the database. After this /// you can safely make this Client instance null. - Future dispose() async { + Future dispose({bool closeDatabase = false}) async { _disposed = true; - await database?.close(); + if (closeDatabase) await database?.close(); database = null; return; }