提交 d3e5d758 编写于 作者: K Kohsuke Kawaguchi

oops

上级 e761d80f
......@@ -1077,7 +1077,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
public void waitUntilOnline() throws InterruptedException {
synchronized (statusChangeLock) {
while (!isOnline())
wait(1000);
statusChangeLock.wait(1000);
}
}
......@@ -1085,7 +1085,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
public void waitUntilOffline() throws InterruptedException {
synchronized (statusChangeLock) {
while (!isOffline())
wait(1000);
statusChangeLock.wait(1000);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册