mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Fix concurrency crash.
This commit is contained in:
1 parent
e115d8bb55
commit
cb5b9b8668
1 file changed
+4
-1
@@ -108,7 +108,10 @@ import ErrorLog
|
||||
let lineNumber = notification.userInfo?[ErrorLogUserInfoKey.lineNumber] as? Int ?? 0
|
||||
|
||||
let entry = ErrorLogEntry(id: 0, date: Date(), sourceName: sourceName, sourceID: sourceID, operation: operation, fileName: fileName, functionName: functionName, lineNumber: lineNumber, errorMessage: errorMessage)
|
||||
appendEntry(entry)
|
||||
|
||||
Task { @MainActor in
|
||||
appendEntry(entry)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user