Merge pull request #476 from Fang-/talk-web-unbind

Webtalk now drops unused subscriptions.
This commit is contained in:
Ted Blackman 2017-12-09 14:40:22 -08:00 committed by GitHub
commit c663b95bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1577,6 +1577,11 @@ module.exports = function(arg) {
}
if ((ref = res.data) != null ? (ref1 = ref.circle) != null ? ref1.nes : void 0 : void 0) {
if (res.data.circle.nes.length === 0) {
window.urb.drop(path, function(err, res) {
if (err) {
return console.log(err);
}
});
console.log('trying for older than ' + begin);
$this.listenStation(station, new Date(since - 6 * 3600 * 1000));
} else {