hotfix(cli): replace raw subprocess tracebacks with styled error messages and fix restart race condition #96
@@ -42,7 +42,7 @@ def restart(no_daemon: bool = False):
|
|||||||
result = subprocess.run(args + ["kill"], capture_output=True)
|
result = subprocess.run(args + ["kill"], capture_output=True)
|
||||||
if result.returncode == 255:
|
if result.returncode == 255:
|
||||||
break
|
break
|
||||||
time.sleep(0.05)
|
time.sleep(0.25)
|
||||||
start_instance(no_daemon=no_daemon)
|
start_instance(no_daemon=no_daemon)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user