Skip to content

Commit

Permalink
fix: ensure completion block is always called in `DefaultExperiment…
Browse files Browse the repository at this point in the history
…Client.start` function
  • Loading branch information
Brett-Best committed Sep 13, 2024
1 parent 0a912b9 commit a67192f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Experiment/ExperimentClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ internal class DefaultExperimentClient : NSObject, ExperimentClient {
runningLock.wait()
if isRunning {
runningLock.signal()
completion?(nil)
return
}
isRunning = true
Expand Down

0 comments on commit a67192f

Please sign in to comment.