Skip to content

Commit 828745f

Browse files
committed
fix: explicitly close the database on account removal
1 parent 0cdf9b8 commit 828745f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/accounts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ impl Accounts {
165165
.remove(&id)
166166
.with_context(|| format!("no account with id {id}"))?;
167167
ctx.stop_io().await;
168+
ctx.sql.close().await;
168169
drop(ctx);
169170

170171
if let Some(cfg) = self.config.get_account(id) {

0 commit comments

Comments
 (0)