only notify once
This commit is contained in:
parent
a84d702509
commit
adad2d6553
|
@ -14,6 +14,6 @@ class Semaphore {
|
|||
|
||||
synchronized public void release() {
|
||||
this.value--;
|
||||
notifyAll();
|
||||
notify();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue