Skip to content

Commit

Permalink
Do not pass around the same GMusic list; create new each time
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerego committed Mar 30, 2017
1 parent 9de7b76 commit 920aa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions srv/hackclock/views/blocks/js/generators/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ Blockly.Python['google_music_radio'] = function(block) {
Blockly.Python.definitions_['import_speaker'] = 'from hackclock.runapp.Libs.GStreamer import Speaker';
Blockly.Python.definitions_['import_googlemusic'] = 'from hackclock.runapp.Libs.GoogleMusic import AudioStream';
Blockly.Python.definitions_['init_speaker'] = 'speaker = Speaker()';
Blockly.Python.definitions_['init_googlemusic'] = 'audio_stream = AudioStream()';

return ['audio_stream', Blockly.Python.ORDER_ATOMIC];
return ['AudioStream()', Blockly.Python.ORDER_ATOMIC];
};

Blockly.Python['play_list'] = function(block) {
Expand Down

0 comments on commit 920aa52

Please sign in to comment.