diff options
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 96e16a45f8..ff6b24ccda 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -156,6 +156,9 @@ class SignatureGenerator(object): | |||
156 | 156 | ||
157 | return DataCacheProxy() | 157 | return DataCacheProxy() |
158 | 158 | ||
159 | def exit(self): | ||
160 | return | ||
161 | |||
159 | class SignatureGeneratorBasic(SignatureGenerator): | 162 | class SignatureGeneratorBasic(SignatureGenerator): |
160 | """ | 163 | """ |
161 | """ | 164 | """ |
@@ -489,6 +492,12 @@ class SignatureGeneratorUniHashMixIn(object): | |||
489 | self._client = hashserv.create_client(self.server) | 492 | self._client = hashserv.create_client(self.server) |
490 | return self._client | 493 | return self._client |
491 | 494 | ||
495 | def exit(self): | ||
496 | if getattr(self, '_client', None) is not None: | ||
497 | self._client.close() | ||
498 | self._client = None | ||
499 | return super().exit() | ||
500 | |||
492 | def get_stampfile_hash(self, tid): | 501 | def get_stampfile_hash(self, tid): |
493 | if tid in self.taskhash: | 502 | if tid in self.taskhash: |
494 | # If a unique hash is reported, use it as the stampfile hash. This | 503 | # If a unique hash is reported, use it as the stampfile hash. This |