wait for ClientAppManager like the Windows launcher does

This commit is contained in:
Zlatin Balevsky
2022-02-11 18:37:03 +00:00
parent 440c67c443
commit b0cffca0ab

View File

@ -60,8 +60,13 @@ public class MacLauncher {
sleep(1000);
}
// then wait for ClientAppManager
ClientAppManager cam;
while ((cam = ctx.clientAppManager()) == null) {
sleep(1000);
}
// then wait for the update manager
ClientAppManager cam = ctx.clientAppManager();
UpdateManager um;
while ((um = (UpdateManager) cam.getRegisteredApp(UpdateManager.APP_NAME)) == null) {
sleep(1000);