提交 b2e36a6c 编写于 作者: J Josh Soref

If two users trigger updateDirectly -> isDue, make one wait

上级 8bea0c95
......@@ -283,7 +283,7 @@ public class UpdateSite {
/**
* Returns true if it's time for us to check for new version.
*/
public boolean isDue() {
synchronized public boolean isDue() {
if(neverUpdate) return false;
if(dataTimestamp == 0)
dataTimestamp = getDataFile().file.lastModified();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册