Skip to content

Commit

Permalink
Fixed getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Vacic committed Jul 31, 2018
1 parent 6d4d632 commit a63913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Operation/AsyncOperation.swift
Expand Up @@ -30,7 +30,7 @@ open class AsyncOperation : Operation {
private let queue = DispatchQueue(label: "com.radianttap.Essentials.AsyncOperation")

public private(set) var state: State {
get { return queue.sync { return _state } }
get { return _state }
set { queue.sync { _state = newValue } }
}

Expand Down

0 comments on commit a63913a

Please sign in to comment.