From a38f8df657b30b2fa50c91d0872b6e6a098ed1c9 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 17 Feb 2014 20:42:24 +0000 Subject: [PATCH] whoops --- 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 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); };