michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
409 stars 114 forks source link

HueBridgeDiscovery Freezes on Raspberry Pi #220

Closed abduelhamit closed 4 years ago

abduelhamit commented 4 years ago

For whatever reason, the discovery methods in HueBridgeDiscovery cause a lot of trouble on my Raspberry Pi, although it works on my Windows PC. My application freezes at that place.

I've looked into the issue and found out that the CancellationTokenSource.Cancel method is the cause; it stops there.

My suggestion is to follow an answer on Stack Overflow to make sure that the cancellation happens non-blocking on a different thread.

michielpost commented 4 years ago

Ok, thanks. I fixed this in version 3.15.3, now on NuGet. Can you confirm if this works?