diff --git a/AirMessage/Controllers/AccountConnectViewController.swift b/AirMessage/Controllers/AccountConnectViewController.swift index d88dbc1..f1a4d08 100644 --- a/AirMessage/Controllers/AccountConnectViewController.swift +++ b/AirMessage/Controllers/AccountConnectViewController.swift @@ -18,8 +18,12 @@ class AccountConnectViewController: NSViewController { private var server: HttpServer! + private var _currentAuthSession: Any? = nil @available(macOS 10.15, *) - private lazy var currentAuthSession: ASWebAuthenticationSession? = nil + fileprivate var currentAuthSession: ASWebAuthenticationSession? { + get { _currentAuthSession as! ASWebAuthenticationSession? } + set { _currentAuthSession = newValue } + } private var isConnecting = false private var currentDataProxy: DataProxyConnect!