[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7482/8267] bitbake: prserv/serv: Shut down any existing server before restarting



commit fc2f9c8a6370c4fa97bf74f7fa37704d717afa03
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   Thu Aug 31 17:22:25 2017 +0100

    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>

 bitbake/lib/prserv/serv.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 306f0a3..a2da072 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]