浏览代码

修复刷新取任务时间刷新问题

ting.yin 4 年之前
父节点
当前提交
c139ffd067
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      stmms-biz/src/main/java/cn/com/qmth/stmms/biz/utils/TaskLock.java

+ 1 - 3
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/utils/TaskLock.java

@@ -120,16 +120,14 @@ public class TaskLock {
         return false;
     }
 
-    public synchronized boolean refresh(Object owner) {
+    public synchronized void refresh(Object owner) {
         LockNode node = head.next;
         while (node != null) {
             if (node.isOwner(owner)) {
                 node.time = System.currentTimeMillis();
-                return true;
             }
             node = node.next;
         }
-        return false;
     }
 
     public int count() {