ndb: fix crashed when trying to process client event on a closed db

This commit is contained in:
William Casarin
2024-01-10 15:38:31 -08:00
parent afe3dcf039
commit 6834367386

View File

@@ -373,6 +373,7 @@ class Ndb {
}
func process_client_event(_ str: String) -> Bool {
guard !self.closed else { return false }
return str.withCString { cstr in
return ndb_process_client_event(ndb.ndb, cstr, Int32(str.utf8.count)) != 0
}