michielpost / Q42.HueApi

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

System.Net.Sockets.SocketException at _hueStreamingClient.Close() #172

Closed sasharp closed 5 years ago

sasharp commented 5 years ago

Hello,

I am using Streaming API on Xamarin.Forms and it works fine. But when I try to close a connection by _hueStreamingClient.Close() it gets System.Net.Sockets.SocketException. What is the right way to stop streaming?

michielpost commented 5 years ago

Thanks. Also noticed this but just used a try catch. It's now fixed by using a Shutdown and Close on the socket instead of a Disconnect(). New version is up on NuGet.