Fix persistent wallet on log out

This patch simply disconects the wallet connection when a user logs out.

Changelog-Fixed: Fixed wallet not disconnecting when a user logs out

Signed-off-by: ericholguin <ericholguin@apache.org>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
ericholguin
2024-06-09 13:38:40 -06:00
committed by William Casarin
parent 6cd9d7b1da
commit 8bcd8317f1

View File

@@ -99,6 +99,7 @@ class DamusState: HeadlessDamusState {
func close() {
print("txn: damus close")
wallet.disconnect()
pool.close()
ndb.close()
}