diff --git a/modules/radio/radio.js b/modules/radio/radio.js index aaa8853..163eef2 100644 --- a/modules/radio/radio.js +++ b/modules/radio/radio.js @@ -42,7 +42,7 @@ var radio = function(dbot) { }.bind(this)); stream.on('end', function() { - this.stream.close(); + this.stream.end(); this.listening = false; }.bind(this)); }.bind(this), @@ -59,7 +59,7 @@ var radio = function(dbot) { this.internalAPI.getRadio(); }.bind(this); this.onDestroy = function() { - this.stream.close(); + this.stream.end(); }.bind(this); };