omx-manager
omx-manager copied to clipboard
Instance.stop() calling crashes the app
App crashers while playing multiple videos, {'--loop': true}, if don't turn on loop the first video plays then ends /home/pi/omxjs/omxplayer.js:44:9=>
if(dont_loop_all && video == last) instance.stop();
events.js:160 throw er; // Unhandled 'error' event ^
Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (net.js:290:12)
at KeyboardController._sendAction (/home/pi/omxjs/node_modules/omx-manager/lib/keyboardcontroller.js:63:29)
at KeyboardController.stop (/home/pi/omxjs/node_modules/omx-manager/lib/keyboardcontroller.js:85:14)
at dontLoopLast (/home/pi/omxjs/omxplayer.js:29:53)
at KeyboardController.