From 7267336de9a63fa28ca8b465f198f265d5560c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hete=C5=A1?= Date: Thu, 27 Jul 2017 16:56:56 +0200 Subject: [PATCH] Update display() callback for new SDK --- Sources/ConnectivityService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ConnectivityService.swift b/Sources/ConnectivityService.swift index 55f7177..0d4f6ac 100644 --- a/Sources/ConnectivityService.swift +++ b/Sources/ConnectivityService.swift @@ -34,7 +34,7 @@ class ConnectivityService: NSObject, EMSDeviceManagerDelegate, EMSDeviceConnecta if let mirror = connectedMirrors.first(where: { $0.identifier == mirrorIdentifier }) { NSLog("[ConnectivityService] attempting to send data = \(data) to Mirror with identifier = \(mirrorIdentifier)") - mirror.display(data) { (_, error) in + mirror.display(data) { error in if let error = error { NSLog("[ConnectivityService] failed to send data = \(data) to Mirror with identifier = \(mirrorIdentifier), error = \(error)") } else {