txn: do not close txn if database is already closed

This is a potential fix for some of the crash reports that have been
streaming in. They all seem to be crashing within ndb_close_txn. I
suspect this means that the transactions are trying to get closed when
ndb is already closed. Closing Ndb will close the transactions
automatically, so it looks like we might be trying to close twice.
This commit is contained in:
William Casarin
2024-01-25 12:06:35 -08:00
parent 0f307ab8d5
commit 56b1efc6f1
2 changed files with 16 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
//
// MuteManager.swift
// damus
//
// Created by William Casarin on 2024-01-25.
//
import Foundation