lihaosky / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

deviceDidGoOffline called too early on iOS 2.4 SDK #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the 2.4 iOS SDK the delegate callback deviceDidGoOffline is called too 
early. The device is not yet removed from the device list when this call is 
executed. 

As a workaround I have implemented a small delay in executing my update code. 
Please see the following code snipped as a demonstration of the problem:

- (void)deviceDidGoOffline:(GCKDevice *)device {
        // GCKDeviceScanner devices contains 1 device at this point
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        // After this small delay the GCKDeviceScanner devices contains 0 devices.
    });
}

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by s...@stefkampen.nl on 2 Oct 2014 at 8:22

GoogleCodeExporter commented 9 years ago
This has been fixed for the next release.

Original comment by mlind...@google.com on 7 Oct 2014 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by and...@google.com on 8 Oct 2014 at 3:48

GoogleCodeExporter commented 9 years ago
The update containing this fix has been released.

Original comment by and...@google.com on 2 Dec 2014 at 6:35