lnlink

iOS app for connecting to lightning nodes
git clone git://jb55.com/lnlink
Log | Files | Refs | Submodules | README | LICENSE

commit 1545bd147f700749eda3b667e8fbe529854e7e39
parent bcdad18a298352d371f9fd98e268ac85b89a874e
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 28 Feb 2022 14:20:17 -0800

run connection validation on background thread

otherwise QR code scanner gets stuck on bad connections

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mlightninglink/Views/SetupView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lightninglink/Views/SetupView.swift b/lightninglink/Views/SetupView.swift @@ -49,7 +49,7 @@ struct SetupView: View { @State var lnlink: LNLink? = nil func perform_validation(_ lnlink: LNLink) { - DispatchQueue.main.async { + DispatchQueue.global(qos: .background).async { validate_connection(lnlink: lnlink) { res in switch res { case .connection_failed: