mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-01-02 18:28:33 +01:00
Fixed crash when UI took too long to initialize
This commit is contained in:
parent
bf46dba694
commit
1b5edd4808
@ -6,4 +6,4 @@ org.gradle.configureondemand=true
|
||||
# Project properties
|
||||
maven_name=ViaProxy
|
||||
maven_group=net.raphimc
|
||||
maven_version=3.0.2
|
||||
maven_version=3.0.3
|
||||
|
@ -110,6 +110,10 @@ public class ViaProxy {
|
||||
updateCheckThread.start();
|
||||
loaderThread.join();
|
||||
accountRefreshThread.join();
|
||||
while (ui[0] == null) {
|
||||
Logger.LOGGER.info("Waiting for UI to be initialized...");
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
ui[0].setReady();
|
||||
Logger.LOGGER.info("ViaProxy started successfully!");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user