increase restart sleep to avoid port conflicts

This commit is contained in:
Kevin Froman 2019-09-29 15:55:14 -05:00
parent 6d515f7a60
commit d49811bc2e

View File

@ -35,7 +35,7 @@ def restart():
daemonlaunch.kill_daemon() daemonlaunch.kill_daemon()
while localcommand.local_command('ping', maxWait=8) == 'pong!': while localcommand.local_command('ping', maxWait=8) == 'pong!':
time.sleep(0.3) time.sleep(0.3)
time.sleep(4) time.sleep(9)
subprocess.Popen([SCRIPT_NAME, 'start']) subprocess.Popen([SCRIPT_NAME, 'start'])
restart.onionr_help = 'Gracefully restart Onionr' restart.onionr_help = 'Gracefully restart Onionr'