Skip to content

Commit

Permalink
close the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Nov 2, 2016
1 parent 6525037 commit d4c420d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kitsune/hlo_audio_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ int hlo_filter_voice_command(hlo_stream_t * input, hlo_stream_t * output, void *
if( ret < 0 ) {
stop_led_animation(2, 33);
play_led_animation_solid(LED_MAX, LED_MAX, 0, 0, 1, 18, 1);

if(output) {
hlo_stream_close(output);
}
} else {
output = hlo_stream_bw_limited( output, 1, 5000);
output = hlo_light_stream( output, false );
Expand Down

0 comments on commit d4c420d

Please sign in to comment.