Removes uneccessary wait when the server boots

This commit is contained in:
2022-12-31 13:42:43 -05:00
parent d6e2767713
commit 96b20048a4

View File

@@ -309,21 +309,6 @@ Deny from all""")
continue
# Runs stuff that runs every boot
dailyMaintenance()
# Will make sure that the internal clock is right for 1 minute
times = time.time()
change = 0
startTime = times
if len(sys.argv) == 1:
while change < 1:
totalTime = time.time() - startTime
if totalTime > 60:
writeLog("Time may be wrong; time check failed", 9)
break
time.sleep(0.5)
change = time.time() - times
times = time.time()
if (developmentMachine): # Skips the waiting if development machine (So you don't have to wait 2 minutes for the booting)
break
# Will turn on the internet to make sure that it is on
if not developmentMachine:
internetOn = router.turnOnInternet()