From ef41c19542703afc9567f9fc5b23355d438f3f60 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 8 Jul 2025 15:58:11 +0200 Subject: [PATCH] assert is not closed already --- core/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib.rs b/core/lib.rs index 98c150e6c..6e2fb82a7 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -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())