mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-07 01:04:26 +01:00
assert is not closed already
This commit is contained in:
@@ -742,6 +742,7 @@ impl Connection {
|
||||
|
||||
/// Close a connection and checkpoint.
|
||||
pub fn close(&self) -> Result<()> {
|
||||
turso_assert!(!self.closed.get(), "Connection already closed");
|
||||
self.closed.set(true);
|
||||
self.pager
|
||||
.checkpoint_shutdown(self.wal_checkpoint_disabled.get())
|
||||
|
||||
Reference in New Issue
Block a user