Delete telemetry cache only when count reaches 0

This commit is contained in:
Andrew Henry 2020-07-10 13:27:30 -07:00
parent 3338bc1000
commit bacad24811

View File

@ -334,8 +334,8 @@ define([
});
if (subscriber.callbacks.length === 0) {
subscriber.unsubscribe();
delete this.subscribeCache[keyString];
}
delete this.subscribeCache[keyString];
}.bind(this);
};