Skip to content

Commit

Permalink
Merge pull request #154 from alfavata/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet authored Dec 1, 2024
2 parents 761b6ef + ef198d3 commit 5e88643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/CodeScanner/ScannerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ extension CodeScannerView {
}

func didFail(reason: ScanError) {
parentView.completion(.failure(reason))
DispatchQueue.main.async {
self.parentView.completion(.failure(reason))
}
}

}
Expand Down

0 comments on commit 5e88643

Please sign in to comment.