Bugfixes in live development server

This commit is contained in:
Sven Heidemann 2021-03-16 22:29:30 +01:00
parent bc99763329
commit dbb0a4a2df
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class LiveServerService(ServiceABC, FileSystemEventHandler):
for proc in psutil.process_iter():
with suppress(Exception):
if proc.cmdline() == self._ls_thread.command:
os.system(f'pkill -f {self._ls_thread.main}')
proc.kill()
Console.write_line('Restart\n')
while self._ls_thread.is_alive():

View File

@ -6,7 +6,7 @@ from cpl.console import Console
class TestModel:
def __init__(self):
Console.spinner('Waiting: ', self._wait, 3)
Console.spinner('Waiting: ', self._wait, 10)
option = Console.select('->', 'Select option: ', [
'Option 1',
'Option 2',