[oe-commits] [bitbake] 04/07: xmlrpc: fix bug in setting XMLRPCServer.single_use

git at git.openembedded.org git at git.openembedded.org
Wed Mar 9 22:46:16 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 0a60b0928a0a746a60d2c2f294ff1903963c7086
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Mar 9 10:07:40 2016 +0200

    xmlrpc: fix bug in setting XMLRPCServer.single_use
    
    XMLRPCServer.single_use attribute was always set to False.
    This caused xmlrpc server to keep running after build is done as
    BitBakeServerCommands.removeClient only shuts down server if its
    single_use attribute is set to True.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/server/xmlrpc.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/bb/server/xmlrpc.py b/lib/bb/server/xmlrpc.py
index 1ceca51..7528138 100644
--- a/lib/bb/server/xmlrpc.py
+++ b/lib/bb/server/xmlrpc.py
@@ -191,8 +191,7 @@ class XMLRPCServer(SimpleXMLRPCServer, BaseImplServer):
         Constructor
         """
         BaseImplServer.__init__(self)
-        if (interface[1] == 0):     # anonymous port, not getting reused
-            self.single_use = True
+        self.single_use = interface[1] == 0 # anonymous port, not getting reused
         # Use auto port configuration
         if (interface[1] == -1):
             interface = (interface[0], 0)
@@ -205,7 +204,6 @@ class XMLRPCServer(SimpleXMLRPCServer, BaseImplServer):
         self.commands = BitBakeServerCommands(self)
         self.autoregister_all_functions(self.commands, "")
         self.interface = interface
-        self.single_use = False
 
     def addcooker(self, cooker):
         BaseImplServer.addcooker(self, cooker)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list