mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 14:17:54 +00:00
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>
This commit is contained in:
parent
88fcf8422d
commit
f0c28dddbe
@ -492,6 +492,12 @@ class SignatureGeneratorUniHashMixIn(object):
|
|||||||
self._client = hashserv.create_client(self.server)
|
self._client = hashserv.create_client(self.server)
|
||||||
return self._client
|
return self._client
|
||||||
|
|
||||||
|
def reset(self, data):
|
||||||
|
if getattr(self, '_client', None) is not None:
|
||||||
|
self._client.close()
|
||||||
|
self._client = None
|
||||||
|
return super().reset(data)
|
||||||
|
|
||||||
def exit(self):
|
def exit(self):
|
||||||
if getattr(self, '_client', None) is not None:
|
if getattr(self, '_client', None) is not None:
|
||||||
self._client.close()
|
self._client.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user