1
0

Call static sleep method in Thread-class

This commit is contained in:
Victor 2014-03-28 16:50:35 +02:00
parent b64fe1505c
commit e406e5b097
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -47,7 +47,7 @@ public final class SocketHelper extends Thread {
break;
}
try {
Thread.sleep(200);
sleep(200);
} catch (InterruptedException ex) { }
}
}