thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
648 stars 95 forks source link

Fix sessionRequest function #101

Open EdenwareApps opened 3 years ago

EdenwareApps commented 3 years ago

Under some circunstances, the value of "response" at the line 93 will be:

{type: "ERROR", reason: "APP_ERROR"}

...with no "status" attribute, possibly causing the process to crash.