Fix: "Object.wait(...)" and "Condition.await(...)" should be called inside a "while" loop (squid:S2274)

This commit is contained in:
Jano Svitok 2018-07-30 13:23:01 +02:00
parent 1eeaee1da8
commit 9cd5f509ae

View File

@ -58,7 +58,7 @@ public abstract class SocketServer implements Runnable {
private void waitForServer() throws InterruptedException {
synchronized (lockObject) {
if (!isStarted) {
while (!isStarted) {
lockObject.wait();
}
}