update loading app
This commit is contained in:
parent
d69cce2e38
commit
927f61e124
16
run.py
16
run.py
@ -955,21 +955,9 @@ def setup_client(pool):
|
|||||||
if config["core"]["server"] == "Hyper-V":
|
if config["core"]["server"] == "Hyper-V":
|
||||||
run_cmd("Start-VM -Name Jukebox*") # any and all VMs starting with "Jukebox"
|
run_cmd("Start-VM -Name Jukebox*") # any and all VMs starting with "Jukebox"
|
||||||
|
|
||||||
# Wait for VM to start and be reachable over the network
|
sleep(20)
|
||||||
serverproc = Process(target=start_client_socket)
|
|
||||||
serverproc.start()
|
|
||||||
|
|
||||||
pool.apply_async(check_server_online, (config["core"]["serverip"],config["core"]["clientip"]), callback=vm_start_callback)
|
|
||||||
|
|
||||||
#wait_for(vm_ready, "VM Startup")
|
|
||||||
|
|
||||||
#global vm_ready
|
|
||||||
if vm_ready is False:
|
|
||||||
fprint("waiting for " + "VM Startup" + " to complete...")
|
|
||||||
while vm_ready is False:
|
|
||||||
sleep(0.1)
|
|
||||||
p.terminate()
|
p.terminate()
|
||||||
firefox.get("http://" + config["core"]["serverip"] + ":8000")
|
firefox.get('http://192.168.1.25:3000')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user