mirror of
https://github.com/revanced/jadb.git
synced 2025-02-11 09:36: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 {
|
||||
synchronized (lockObject) {
|
||||
if (!isStarted) {
|
||||
while (!isStarted) {
|
||||
lockObject.wait();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user