Added brackets to if statement

This commit is contained in:
Alexander Bielen
2018-10-26 19:32:21 +02:00
parent cbc5c3cc7d
commit 893f384d33
@@ -64,7 +64,9 @@ public final class Time {
*/
public static boolean sleep(SleepCondition conn, int timeout, int minimumTimeout) {
long start = System.currentTimeMillis();
if(!sleep(conn, timeout)) return false;
if(!sleep(conn, timeout)) {
return false;
}
long t;
if((t = System.currentTimeMillis() - start) < minimumTimeout) {
Time.sleep((int)(minimumTimeout - t));