Changes
1 changed files (+4/-10)
-
-
@@ -58,13 +58,6 @@ }private let server: ServerQuery /// Connection address as a local property. /// /// Since `RoonKit.Connection` is an actor, accessing `host` and `port` of that /// requires `async` access, which incurs context switches. This stored propery is both for /// performance and for convenience. private var address: (String, UInt16)? = nil /// Initialize data model with server ID, let the model resolve host and port. /// /// Model might use cached host/port to skip UDP mutlicast.
-
@@ -86,7 +79,6 @@ }do { state = .loading address = nil let serverID: String let host: String
-
@@ -136,7 +128,6 @@ port: port,ext: ext ) address = (host, port) state = .open(conn, (host, port)) connectedServerID = serverID
-
@@ -166,8 +157,11 @@ }} func imageURL(req: ImageService.GetRequest) -> URL? { address.flatMap { (host, port) in switch state { case .open(_, let (host, port)): URL(roonImage: req, host: host, port: port) default: nil } }
-