mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-23 23:51:06 +01:00
Merge pull request #3112 from heckj/unsafe_os_unfair_lock
fixing name of lock
This commit is contained in:
commit
f9f5f09c60
@ -16,9 +16,9 @@ import RSCore
|
||||
private var databaseIDCache = [String: String]()
|
||||
private var databaseIDCacheLock = NSLock()
|
||||
public func databaseIDWithString(_ s: String) -> String {
|
||||
databaseIdCacheLock.lock()
|
||||
databaseIDCacheLock.lock()
|
||||
defer {
|
||||
databaseIdCacheLock.unlock()
|
||||
databaseIDCacheLock.unlock()
|
||||
}
|
||||
|
||||
if let identifier = databaseIDCache[s] {
|
||||
|
Loading…
Reference in New Issue
Block a user