Skip to content

Commit

Permalink
Fix typo in LicensePlistExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmartha committed Jul 18, 2017
1 parent c2fa631 commit 4f0bd2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/LicensePlistCore/Extension/APIKit.extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ extension Session: LicensePlistCompatible {}
extension LicensePlistExtension where Base: Session {
func sendSync<T: Request>(_ request: T) -> Result<T.Response, SessionTaskError> {
var result: Result<T.Response, SessionTaskError>!
let semaphor = DispatchSemaphore(value: 0)
let semaphore = DispatchSemaphore(value: 0)
self.base.send(request, callbackQueue: .sessionQueue) { _result in
result = _result
semaphor.signal()
semaphore.signal()
}
semaphor.wait()
semaphore.wait()
return result
}
func send<T: Request>(_ request: T) -> ResultOperation<T.Response, SessionTaskError> {
Expand Down

0 comments on commit 4f0bd2e

Please sign in to comment.