From 2c1acab7618833cd2c5b5d7b51c417a513d7cc79 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 17 Feb 2014 20:51:20 +0000 Subject: [PATCH] try abort --- modules/radio/radio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/radio/radio.js b/modules/radio/radio.js index 163eef2..38ce3c0 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.end(); + 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.end(); + this.stream.abort(); }.bind(this); };