From 4d60cbcb38b2d62eb5a6e06607e36997791abb1a Mon Sep 17 00:00:00 2001 From: Gerrit Linnemann Date: Mon, 2 Nov 2015 15:29:41 +0100 Subject: [PATCH] ready4testing --- kitchenradio/app/radio.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kitchenradio/app/radio.js b/kitchenradio/app/radio.js index 871843c..c605c4e 100644 --- a/kitchenradio/app/radio.js +++ b/kitchenradio/app/radio.js @@ -7,7 +7,7 @@ // load the things we need -//nothing yet +var exec = require('child_process').exec; var App = null; @@ -70,7 +70,7 @@ exports.play = function(idx) { }*/ - ls = childProcess.exec( + var ls = exec( 'mplayer -slave -quiet -input file=' + stream2play, function (error, stdout, stderr) { Log.log('Radio: stdout: ' + stdout); @@ -79,11 +79,11 @@ exports.play = function(idx) { Log.error('Radio: exec error: ' + error); } }); - - ls.on('exit', function (code){ - Log.log('Radio: Child process exited with exit code ' + code); - }); ); + + ls.on('exit', function (code){ + Log.log('Radio: Child process exited with exit code ' + code); + }); } else { Log.error('Radio: No channel defined!'); }