mirror of
git://git.yoctoproject.org/poky
synced 2026-08-11 06:19:02 +00:00
bitbake: prserv/serv: Shut down any existing server before restarting
This allows for cleaner code in cooker as any existing server is dealt with before a new one is started. (Bitbake rev: b8616931bc0e523a3a3bb23b4f623f8b6e71d690) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
984da85479
commit
fc2f9c8a63
@ -442,6 +442,9 @@ class PRServiceConfigError(Exception):
|
||||
def auto_start(d):
|
||||
global singleton
|
||||
|
||||
# Shutdown any existing PR Server
|
||||
auto_shutdown()
|
||||
|
||||
host_params = list(filter(None, (d.getVar('PRSERV_HOST') or '').split(':')))
|
||||
if not host_params:
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user