Fix channel cache

This commit is contained in:
yflory 2020-12-14 11:05:39 +01:00
parent beab767016
commit e656a67c16

View File

@ -94,7 +94,7 @@ define([
S.storeCache = function (id, validateKey, val, cb) {
cb = Util.once(Util.mkAsync(cb || function () {}));
onReady.reg(function (allowed) {
onReady.reg(function () {
if (!allowed) { return void cb('NOCACHE'); }
if (!Array.isArray(val) || !validateKey) { return void cb('EINVAL'); }
checkCheckpoints(val);