summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/prserv
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:22:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 23:30:03 +0100
commitfc2f9c8a6370c4fa97bf74f7fa37704d717afa03 (patch)
tree45935a70a00b21b2f4303c859cc014fc8b795962 /bitbake/lib/prserv
parent984da85479fa6127df806b2aa3a9fb27d268f2a3 (diff)
downloadpoky-fc2f9c8a6370c4fa97bf74f7fa37704d717afa03.tar.gz
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>
Diffstat (limited to 'bitbake/lib/prserv')
-rw-r--r--bitbake/lib/prserv/serv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 306f0a3c40..a2da07227f 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -442,6 +442,9 @@ class PRServiceConfigError(Exception):
442def auto_start(d): 442def auto_start(d):
443 global singleton 443 global singleton
444 444
445 # Shutdown any existing PR Server
446 auto_shutdown()
447
445 host_params = list(filter(None, (d.getVar('PRSERV_HOST') or '').split(':'))) 448 host_params = list(filter(None, (d.getVar('PRSERV_HOST') or '').split(':')))
446 if not host_params: 449 if not host_params:
447 return None 450 return None