damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit bfb0dbac56e9ec0a594cf3a8a8bc1559273edf8d
parent fbdc5446f0ddfe8387870a6f21c0a199c652684c
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 26 Jan 2024 10:55:33 -0800

txn: do another guard check before query just in case

probably won't do anything

Diffstat:
Mnostrdb/NdbTxn.swift | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/nostrdb/NdbTxn.swift b/nostrdb/NdbTxn.swift @@ -32,6 +32,7 @@ class NdbTxn<T> { self.inherited = true } else { self.txn = ndb_txn() + guard !ndb.closed else { return nil } let ok = ndb_begin_query(ndb.ndb.ndb, &self.txn) != 0 if !ok { return nil