ndb: use is_closed which also check nil ptrs
not an issue atm, but maybe in the future
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user