Call static sleep method in Thread-class
This commit is contained in:
parent
b64fe1505c
commit
e406e5b097
@ -110,7 +110,7 @@ public abstract class DoubleBufferedCanvas extends Canvas implements MouseListen
|
|||||||
public void run() {
|
public void run() {
|
||||||
while (keepRunning) {
|
while (keepRunning) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(25);
|
sleep(25);
|
||||||
} catch (InterruptedException ex) {}
|
} catch (InterruptedException ex) {}
|
||||||
repaint();
|
repaint();
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public final class SocketHelper extends Thread {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(200);
|
sleep(200);
|
||||||
} catch (InterruptedException ex) { }
|
} catch (InterruptedException ex) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user