summaryrefslogtreecommitdiff
path: root/src/buildstream
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-09-02 08:40:39 +0200
committerJürg Billeter <j@bitron.ch>2019-09-03 11:17:27 +0200
commit088705c4c429cc467f8a89ea39958a56a795b5a1 (patch)
treeb72a25239d3fe14231511a110e0f10fd49576ca2 /src/buildstream
parent0139e4739f9c9fc5a17e5ca04305fe1187dee00b (diff)
downloadbuildstream-088705c4c429cc467f8a89ea39958a56a795b5a1.tar.gz
cascache.py: Close gRPC channel in release_resources()
Diffstat (limited to 'src/buildstream')
-rw-r--r--src/buildstream/_cas/cascache.py5
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