mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
69d13dc64c
commit
8d87f7040f
@@ -299,6 +299,8 @@ class BitBakeXMLRPCServerConnection(BitBakeBaseServerConnection):
|
|||||||
|
|
||||||
_, error = self.connection.runCommand(["setFeatures", self.featureset])
|
_, error = self.connection.runCommand(["setFeatures", self.featureset])
|
||||||
if error:
|
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
|
# no need to log it here, the error shall be sent to the client
|
||||||
raise BaseException(error)
|
raise BaseException(error)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user