manager: default driverview to False (#23492)

pull/23494/head
Shane Smiskol 2022-01-11 06:07:35 -07:00 committed by GitHub
parent 24213ac76b
commit 6e817f9eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,6 +67,7 @@ class ManagerProcess(ABC):
daemon = False
sigkill = False
persistent = False
driverview = False
proc: Optional[Process] = None
enabled = True
name = ""
@ -291,8 +292,7 @@ def ensure_running(procs: ValuesView[ManagerProcess], started: bool, driverview:
p.stop(block=False)
elif p.persistent:
p.start()
elif getattr(p, 'driverview', False) and driverview:
# TODO: why is driverview an argument here? can this be done with the name?
elif p.driverview and driverview:
p.start()
elif started:
p.start()