Commit 1cbb618e authored by Toby Brennan's avatar Toby Brennan
Browse files

Further documenting

parent 3d58df33
Showing with 1 addition and 1 deletion
+1 -1
......@@ -16,7 +16,7 @@ class DatabaseController {
/// This function returns a Realm for the current thread
static func getRealm() -> Realm {
guard !isOnRealmQueue else { return queueConfinedRealm }
guard !isOnRealmQueue else { return queueConfinedRealm } // If someone trys to write to realm while we're already in the realm queue this would lock the thread. Hence this check
return try! Realm(configuration: realmConfig, queue: nil)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment