diff options
author | Jürg Billeter <j@bitron.ch> | 2019-09-02 08:40:39 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-09-03 11:17:27 +0200 |
commit | 088705c4c429cc467f8a89ea39958a56a795b5a1 (patch) | |
tree | b72a25239d3fe14231511a110e0f10fd49576ca2 /src/buildstream | |
parent | 0139e4739f9c9fc5a17e5ca04305fe1187dee00b (diff) | |
download | buildstream-088705c4c429cc467f8a89ea39958a56a795b5a1.tar.gz |
cascache.py: Close gRPC channel in release_resources()
Diffstat (limited to 'src/buildstream')
-rw-r--r-- | src/buildstream/_cas/cascache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index 03d7e5dda..af69e3d68 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -150,6 +150,11 @@ class CASCache(): # def release_resources(self, messenger=None): if self._casd_process: + if self._casd_channel: + self._local_cas = None + self._casd_channel.close() + self._casd_channel = None + self._casd_process.terminate() try: # Don't print anything if buildbox-casd terminates quickly |