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:
Richard Purdie
2017-08-31 17:22:25 +01:00
parent 984da85479
commit fc2f9c8a63

View File

@@ -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