fix a Lock bug

This commit is contained in:
Daniella / Tove 2024-06-13 15:00:01 +02:00
parent 53e270e88f
commit e65a448ac4
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -50,7 +50,10 @@ public class Lock extends SimpleLock {
* Wait until unlocked, either by a timer or manually * Wait until unlocked, either by a timer or manually
*/ */
public synchronized void waitHere() { public synchronized void waitHere() {
super.waitHere(waitTime()); long wt = waitTime();
if(wt == 0 && lockTime != 0)
unlock();
super.waitHere(wt);
} }
/** /**