mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:46:47 +00:00
Drop Util#wait
This commit is contained in:
1 parent
7b9d8829da
commit
19d7b5c65d
2 files changed
+6
-9
No files matched your search
+6
-1
@@ -73,7 +73,12 @@ public class DynamicConfigurationManager<T> {
|
||||
public T getConfiguration() {
|
||||
synchronized (this) {
|
||||
while (!initialized) {
|
||||
Util.wait(this);
|
||||
try {
|
||||
this.wait();
|
||||
} catch (final InterruptedException e) {
|
||||
logger.warn("Interrupted while waiting for initial configuration", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return configuration.get();
|
||||
|
||||
@@ -117,14 +117,6 @@ public class Util {
|
||||
} catch (InterruptedException ie) {}
|
||||
}
|
||||
|
||||
public static void wait(Object object) {
|
||||
try {
|
||||
object.wait();
|
||||
} catch (InterruptedException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static long todayInMillis() {
|
||||
return todayInMillis(Clock.systemUTC());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user