fix a Lock bug
This commit is contained in:
parent
53e270e88f
commit
e65a448ac4
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ public class Lock extends SimpleLock {
|
|||
* Wait until unlocked, either by a timer or manually
|
||||
*/
|
||||
public synchronized void waitHere() {
|
||||
super.waitHere(waitTime());
|
||||
long wt = waitTime();
|
||||
if(wt == 0 && lockTime != 0)
|
||||
unlock();
|
||||
super.waitHere(wt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue