diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-31 16:51:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-01 23:14:01 +0100 |
commit | 9b8eda7eb3f1402619760cde68a9c0aae50cf914 (patch) | |
tree | 158ef447ef3d8e8239b0918a1de3287cd0a826d0 /bitbake/lib/bb/cooker.py | |
parent | b731e47eeb3e74d1a53ae88318063f0dd2cdd544 (diff) | |
download | poky-9b8eda7eb3f1402619760cde68a9c0aae50cf914.tar.gz |
bitbake: cooker: Ensure any existing hashserv connection is closed
Ensure any exiting hash server connection is terminated before we start
a new bitbake session. This avoids errors seen with memory resident bitbake
when the asyncio event loop isn't closed correctly.
(Bitbake rev: 42ff9de77f24e2a0bec48a14b64c4b538e00b4af)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0d29aa03a0..d100b96f53 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1766,6 +1766,8 @@ class BBCooker: | |||
1766 | self.state = state.initial | 1766 | self.state = state.initial |
1767 | 1767 | ||
1768 | def reset(self): | 1768 | def reset(self): |
1769 | if hasattr(bb.parse, "siggen"): | ||
1770 | bb.parse.siggen.exit() | ||
1769 | self.initConfigurationData() | 1771 | self.initConfigurationData() |
1770 | self.handlePRServ() | 1772 | self.handlePRServ() |
1771 | 1773 | ||