ndb: use is_closed which also check nil ptrs

not an issue atm, but maybe in the future
This commit is contained in:
William Casarin
2024-01-26 14:02:03 -08:00
parent 851bffed0f
commit 6ae326d193
3 changed files with 12 additions and 8 deletions

View File

@@ -466,7 +466,7 @@ struct ContentView: View {
if damus_state.ndb.reopen() {
print("txn: NOSTRDB REOPENED")
} else {
print("txn: NOSTRDB FAILED TO REOPEN closed:\(damus_state.ndb.closed)")
print("txn: NOSTRDB FAILED TO REOPEN closed:\(damus_state.ndb.is_closed)")
}
}
.onChange(of: scenePhase) { (phase: ScenePhase) in