Merge pull request #616 from mookkiah/issue_587_async-method-invocation
#587 SonarQube reports bugs - async-method-invocation
This commit is contained in:
commit
f47dc1eb7c
@ -139,7 +139,7 @@ public class ThreadAsyncExecutor implements AsyncExecutor {
|
|||||||
@Override
|
@Override
|
||||||
public void await() throws InterruptedException {
|
public void await() throws InterruptedException {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
if (!isCompleted()) {
|
while (!isCompleted()) {
|
||||||
lock.wait();
|
lock.wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user