forked from GitHub/dbot
whoops
This commit is contained in:
parent
e4997cd915
commit
a38f8df657
@ -42,7 +42,7 @@ var radio = function(dbot) {
|
|||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
stream.on('end', function() {
|
stream.on('end', function() {
|
||||||
this.stream.close();
|
this.stream.end();
|
||||||
this.listening = false;
|
this.listening = false;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
@ -59,7 +59,7 @@ var radio = function(dbot) {
|
|||||||
this.internalAPI.getRadio();
|
this.internalAPI.getRadio();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
this.onDestroy = function() {
|
this.onDestroy = function() {
|
||||||
this.stream.close();
|
this.stream.end();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user