Skip to content

Commit

Permalink
[4.0.0-beta-2]: Fixes release configuration Swift crashes
Browse files Browse the repository at this point in the history
Swift bug tracking this: https://bugs.swift.org/browse/SR-2623
  • Loading branch information
danthorpe committed Oct 1, 2016
1 parent bf77b7b commit a31ebc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Logging.swift
Expand Up @@ -158,7 +158,7 @@ public class LogManager: LogManagerProtocol {
/// Private protected properties
private var _severity: Protector<LogSeverity>
private var _enabled: Protector<Bool>
private var loggerLock: ReadWriteLock = Lock()
private var loggerLock = Lock()
private var _logger: LoggerBlockType
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Support.swift
Expand Up @@ -52,7 +52,7 @@ struct Lock: ReadWriteLock {

internal class Protector<T> {

private var lock: ReadWriteLock = Lock()
private var lock = Lock()
private var ward: T

init(_ ward: T) {
Expand Down

0 comments on commit a31ebc3

Please sign in to comment.