1
0
mirror of git://jb55.com/damus synced 2024-09-29 08:20:45 +00:00
damus/nostrdb
William Casarin 4cf92756f1 close nostrdb and disconnect from relays on logout
This was causing crashing and corruption issues. This should have been
handled by the garbage collector, but for some reason old references
still hang around.

Add a "close" method to DamusState which disconnects from relays and
closes nostrdb.

Changelog-Fixed: Fix crash when logging out and switching accounts
Changelog-Fixed: Fix persistent local notifications even after logout
Signed-off-by: William Casarin <jb55@jb55.com>
2024-01-10 16:25:07 -08:00
..
bindings ndb: update bindings 2023-10-23 10:39:27 +08:00
flatcc nostrdb: fix japanese profile names not loading 2023-11-02 10:20:40 +09:00
Test test: switch test to use failable transactions 2024-01-10 15:38:21 -08:00
AsciiCharacter.swift ndb: make AsciiCharacter a CustomStringConvertible 2023-08-01 21:53:19 -07:00
copy-ndb ndb: remove patch from copy script, just use sed 2023-08-28 08:18:25 -07:00
cpu.h nostrdb: add cpu helper 2023-12-02 13:47:17 -08:00
jsmn.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
lmdb.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
mdb.c nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
memchr.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
midl.c nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
midl.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
Ndb.swift close nostrdb and disconnect from relays on logout 2024-01-10 16:25:07 -08:00
NdbNote.swift Bring local notification logic into the push notification target 2024-01-10 11:06:30 -08:00
NdbNote+.swift profile: partially fix performance regression 2024-01-10 11:52:30 -08:00
NdbTagElem.swift ndb: switch to nostrdb notes 2023-08-03 13:20:36 -07:00
NdbTagIterator.swift ndb: sync up a few remaining NdbNote tag differences 2023-07-25 16:22:25 -07:00
NdbTagsIterator.swift ndb/note: always track note size, add to_owned 2023-12-03 22:12:31 -08:00
NdbTxn.swift ndb/txn: make transactions failable 2024-01-10 14:27:02 -08:00
nostrdb.c nip42: add initial relay auth support 2024-01-05 10:36:03 -08:00
nostrdb.h nip42: add initial relay auth support 2024-01-05 10:36:03 -08:00
protected_queue.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
random.h ndb: make NostrEvents immutable 2023-07-25 15:34:05 -07:00
secp256k1_ecdh.h ndb: make NostrEvents immutable 2023-07-25 15:34:05 -07:00
secp256k1_extrakeys.h ndb: make NostrEvents immutable 2023-07-25 15:34:05 -07:00
secp256k1_schnorrsig.h ndb: make NostrEvents immutable 2023-07-25 15:34:05 -07:00
secp256k1.h ndb: make NostrEvents immutable 2023-07-25 15:34:05 -07:00
threadpool.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00
util.h nostrdb: pull latest, adding flatcc and lmdb 2023-08-25 19:05:34 -07:00