ready4testing

This commit is contained in:
Gerrit Linnemann 2015-11-02 15:29:41 +01:00
parent 97df3f20fe
commit 4d60cbcb38

View File

@ -7,7 +7,7 @@
// load the things we need // load the things we need
//nothing yet var exec = require('child_process').exec;
var App = null; var App = null;
@ -70,7 +70,7 @@ exports.play = function(idx) {
}*/ }*/
ls = childProcess.exec( var ls = exec(
'mplayer -slave -quiet -input file=' + stream2play, 'mplayer -slave -quiet -input file=' + stream2play,
function (error, stdout, stderr) { function (error, stdout, stderr) {
Log.log('Radio: stdout: ' + stdout); Log.log('Radio: stdout: ' + stdout);
@ -79,11 +79,11 @@ exports.play = function(idx) {
Log.error('Radio: exec error: ' + error); 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 { } else {
Log.error('Radio: No channel defined!'); Log.error('Radio: No channel defined!');
} }