Ловим краши

main
none 9 months ago
parent 817c713011
commit c1ddda30ab

@ -34,10 +34,16 @@ def port_gen():
return port
def server_http():
while True:
try:
os.chdir("cached")
os.system("python -m http.server")
except:
print("SERVER_HTTP FALLED")
def server(http_port):
while True:
try:
host = "127.0.0.1"
port = 8001
@ -79,6 +85,9 @@ def server(http_port):
conn.close()
except:
print("SERVER FALLED")
def recv(q, s):
okay = False
while not okay:

@ -6,6 +6,7 @@ from network import *
def update_demon(serv_port):
while True:
try:
ports = port_check(serv_port)
conf = read()
@ -13,3 +14,5 @@ def update_demon(serv_port):
write(conf)
sleep(8)
except:
print("UPDATER FALLED")

Loading…
Cancel
Save