|
@@ -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() {
|