Closed kopiro closed 2 years ago
Interesting. Not sure what's sending that invalid message, but we should definitely not crash. Should be easy enough to fix, just need to log and skip un-parseable messages in UdpDiscoveryNetworkFactory
....
I may think this problem could happen whenever you do Device::withId()
and immediately after you call .openConnection()
WITHOUT calling .discover()
Solved it here: https://github.com/kopiro/homebridge-playstation/blob/master/src/playstationAccessory.ts#L99
Fixed by #49 thanks!
Hey; I've implemented your library in https://github.com/kopiro/homebridge-playstation, and sometimes I'm getting:
This happens after
connection.close()
has been called and we callDevice::withId().discover()
again;The weird thing is that this exception goes through the entire main thread and causes homebridge to crash