Open dustinrouillard opened 6 years ago
Well this is obvious. Since you just closed Spotify, you obviously can't retrieve the track so the object is just undefined
Okay but listen, yes I closed spotify but this error can be caught... Should be caught, you should never have code with errors in it...
@TheTetrabyte is actually right. Never have code run issues. Just check for "undefined" and emit the process. It's very much needed, especially when you run Spoticord with a process manager like pm2.
When closing spotify this happens, javascript doesn't seem to be your strong suit. But bugs happen.