Fix channel cache

pull/1/head
yflory 4 years ago
parent beab767016
commit e656a67c16

@ -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);

Loading…
Cancel
Save