diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-06 14:47:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-09 14:33:45 +0000 |
commit | 8d87f7040fc25a52d6a2c4822b46799f5ab2c481 (patch) | |
tree | 1255e66ca2d0cc9e263109b1bda2210e9b31f4d2 /bitbake | |
parent | 69d13dc64c3d1e5d33e6a30c89eabe509d26bdfc (diff) | |
download | ast2050-yocto-poky-8d87f7040fc25a52d6a2c4822b46799f5ab2c481.zip ast2050-yocto-poky-8d87f7040fc25a52d6a2c4822b46799f5ab2c481.tar.gz |
bitbake: xmlrpcserver: do not connect client on error
We roll back the client connection if some error happens,
like during setFeatures, as to leave the server accessible
to other clients.
(Bitbake rev: 4e4a2ee2f05f8741b2e09263e328420363975b02)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 4205a4c..afe3dfe 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py @@ -299,6 +299,8 @@ class BitBakeXMLRPCServerConnection(BitBakeBaseServerConnection): _, error = self.connection.runCommand(["setFeatures", self.featureset]) if error: + # disconnect the client, we can't make the setFeature work + self.connection.removeClient() # no need to log it here, the error shall be sent to the client raise BaseException(error) |