Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Operations called on background thread do nothing #78

Open
alistairg opened this issue Nov 23, 2014 · 0 comments
Open

Operations called on background thread do nothing #78

alistairg opened this issue Nov 23, 2014 · 0 comments

Comments

@alistairg
Copy link

I've been fighting the following swift code. It's called in the background, and didn't do anything (notifications registered elsewhere are never called). However, if I run it on the main thread, it works fine.

This should work on a background thread too, no?

let hueSdk = PHHueSDK() hueSdk.enableLogging(true) hueSdk.startUpSDK() NSLog("Server: Attempting to link with Hue hub at \(request.ipAddress) with MAC \(request.macAddress)") hueSdk.setBridgeToUseWithIpAddress(request.ipAddress, macAddress: request.macAddress) hueSdk.startPushlinkAuthentication()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants