diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-25 09:22:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-26 09:27:43 +0000 |
commit | f0c28dddbe31dac627eaa31ddb1ed21706005a0b (patch) | |
tree | 28381de275b353790845502f8513aecc2f485e6c /bitbake/lib | |
parent | 88fcf8422dd04372d73aacfef0ee50de09ef41bd (diff) | |
download | poky-f0c28dddbe31dac627eaa31ddb1ed21706005a0b.tar.gz |
bitbake: siggen: Add missing reset handler to hashserv signature generator
When we have a client connection, we should close that connection when reset()
is called on the siggen. Add the missing function.
(Bitbake rev: 770b4ea81b6126b0830e51649c40f7a46c64132a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index ff6b24ccda..1612b4efa1 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -492,6 +492,12 @@ class SignatureGeneratorUniHashMixIn(object): | |||
492 | self._client = hashserv.create_client(self.server) | 492 | self._client = hashserv.create_client(self.server) |
493 | return self._client | 493 | return self._client |
494 | 494 | ||
495 | def reset(self, data): | ||
496 | if getattr(self, '_client', None) is not None: | ||
497 | self._client.close() | ||
498 | self._client = None | ||
499 | return super().reset(data) | ||
500 | |||
495 | def exit(self): | 501 | def exit(self): |
496 | if getattr(self, '_client', None) is not None: | 502 | if getattr(self, '_client', None) is not None: |
497 | self._client.close() | 503 | self._client.close() |