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() {
|
||||
while (keepRunning) {
|
||||
try {
|
||||
Thread.sleep(25);
|
||||
sleep(25);
|
||||
} catch (InterruptedException ex) {}
|
||||
repaint();
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public final class SocketHelper extends Thread {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(200);
|
||||
sleep(200);
|
||||
} catch (InterruptedException ex) { }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user