mirror of
https://github.com/revanced/jadb.git
synced 2025-02-14 02:56:48 +01:00
Fix: "Object.wait(...)" and "Condition.await(...)" should be called inside a "while" loop (squid:S2274)
This commit is contained in:
parent
1eeaee1da8
commit
9cd5f509ae
@ -58,7 +58,7 @@ public abstract class SocketServer implements Runnable {
|
|||||||
|
|
||||||
private void waitForServer() throws InterruptedException {
|
private void waitForServer() throws InterruptedException {
|
||||||
synchronized (lockObject) {
|
synchronized (lockObject) {
|
||||||
if (!isStarted) {
|
while (!isStarted) {
|
||||||
lockObject.wait();
|
lockObject.wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user