Fix SendViewController `viewDidLoad`

This commit is contained in:
Francisco Gindre 2022-10-31 20:45:58 -03:00
parent a0d02c4d57
commit c0f1aa959a
2 changed files with 4 additions and 4 deletions

View File

@ -33,13 +33,13 @@ class SendViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
synchronizer = AppDelegate.shared.sharedSynchronizer
let tapRecognizer = UITapGestureRecognizer(target: self, action: #selector(viewTapped(_:)))
self.view.addGestureRecognizer(tapRecognizer)
setUp()
Task { @MainActor in
// swiftlint:disable:next force_try
try! await synchronizer.prepare()
}
let tapRecognizer = UITapGestureRecognizer(target: self, action: #selector(viewTapped(_:)))
self.view.addGestureRecognizer(tapRecognizer)
setUp()
}
override func viewDidAppear(_ animated: Bool) {

View File

@ -501,7 +501,7 @@ public actor CompactBlockProcessor {
notifyError(CompactBlockProcessorError.maxAttemptsReached(attempts: self.maxAttempts))
case .downloading, .validating, .scanning, .enhancing, .fetching:
LoggerProxy.debug("Warning: compact block processor was started while busy!!!!")
self.needsToStartScanningWhenStopped = true
self.`needsToStartScanningWhenStopped` = true
}
return
}