Fix negation bug

This commit is contained in:
Florian Reimair 2019-01-30 12:15:46 +01:00
parent a363f1545d
commit 2ca5fdc475

View file

@ -56,7 +56,7 @@ public class ThreadGate {
public synchronized void await() {
while (lock.getCount() > 0)
try {
if (lock.await(lock.getCount(), TimeUnit.MINUTES)) {
if (!lock.await(lock.getCount(), TimeUnit.MINUTES)) {
log.warn("timeout occured!");
break; // break the loop
}