MarvinSchenkel / HomeyKodi

Driver and app for Homey to support Kodi
5 stars 9 forks source link

App crash #15

Closed robertklep closed 6 years ago

robertklep commented 6 years ago

Posted on Slack

image

Issue occurs here, it looks like it can happen that this._player isn't defined yet when it gets called.

MarvinSchenkel commented 6 years ago

Yeah something weird is happening with this._player. I also received the following log file. Could Homey be garbage collection objects or something? Would be weird since _kodi is holding a reference to _player

/drivers/kodiDevice.js:217
        return this._player.pauseResume()
                            ^

TypeError: Cannot read property 'pauseResume' of undefined
    at KodiDevice.pauseResume (/drivers/kodiDevice.js:217:29)
MarvinSchenkel commented 6 years ago

Fixed in 2.2.2