Skip to content

Commit

Permalink
Fix where OAuthInterceptor semaphore would get locked.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasMata committed Jul 12, 2022
1 parent 726df69 commit 6c948a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ApiKit/Sources/Interceptors/OAuth/OAuthInterceptor.swift
Expand Up @@ -46,6 +46,7 @@ open class OAuthInterceptor: ApiInterceptor {

semaphore.wait()
guard let token = provider.token else {
semaphore.signal()
failedToRenew(with: nil)
return
}
Expand Down

0 comments on commit 6c948a4

Please sign in to comment.