Commit 1738c5a8 authored by martin hou's avatar martin hou

Merge branch 'device-mgr' of https://gitlab.jing.zone/skye/jensen into device-mgr

parents e425309b 0655788c
...@@ -694,9 +694,10 @@ Jensen.prototype.listFiles = async function () { ...@@ -694,9 +694,10 @@ Jensen.prototype.listFiles = async function () {
let fc = null; let fc = null;
fc = await this.getFileCount(5); fc = await this.getFileCount(5);
fc = fc ? fc.count : 0;
// if (fc == null) return []; // if (fc == null) return [];
if (fc && fc.count == 0) return []; if (fc == 0) return [];
console.log('file count: ' + fc); console.log('file count: ' + fc);
let self = this; let self = this;
...@@ -868,6 +869,7 @@ Jensen.prototype.listFiles = async function () { ...@@ -868,6 +869,7 @@ Jensen.prototype.listFiles = async function () {
} }
else if (fc > 0 && fc - files.length < 10) ts = 1000; else if (fc > 0 && fc - files.length < 10) ts = 1000;
else ts = 15000; else ts = 15000;
console.log('ts, fc, files.length', ts, fc, files.length);
jensen[kv] = window.setTimeout(() => { jensen[kv] = window.setTimeout(() => {
console.log('remove tag: ' + tag); console.log('remove tag: ' + tag);
jensen[tag] = null; jensen[tag] = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment