From 715f7029f09797ff4d33d32870a742b84ddebb35 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Mon, 20 Mar 2017 09:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=8E=B7=E5=8F=96=E7=83=AD?= =?UTF-8?q?=E9=97=A8=E4=B9=A6=E7=AD=BE=E7=9A=84busy=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 952e240..6db8f20 100644 --- a/routes/api.js +++ b/routes/api.js @@ -1114,7 +1114,9 @@ api.getHotBookmarksByTimer = function() { console.log('getHotBookmarks is busy') return; } - busy = true; + if(timeout >= 1000 * 60 * 5){ + busy = true; // 实践证明很容易出错导致busy一直是true,所以干脆去掉此选项了。 + } console.log('begin getHotBookmarks...'); date.setTime(date.getTime() + dayIndex * 24 * 60 * 60 * 1000); var requireData = {