From 3810178be01ab49cbf03c1733f351e75b7b12b5d Mon Sep 17 00:00:00 2001 From: gwenn Date: Tue, 23 Jul 2024 19:28:21 +0200 Subject: [PATCH] Fix test --- src/inner_connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inner_connection.rs b/src/inner_connection.rs index 5811a85..010552b 100644 --- a/src/inner_connection.rs +++ b/src/inner_connection.rs @@ -155,7 +155,7 @@ impl InnerConnection { self.remove_preupdate_hook(); let mut shared_handle = self.interrupt_lock.lock().unwrap(); assert!( - !shared_handle.is_null(), + !self.owned || !shared_handle.is_null(), "Bug: Somehow interrupt_lock was cleared before the DB was closed" ); if !self.owned {