diff options
author | Jürg Billeter <j@bitron.ch> | 2019-08-06 15:28:04 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-20 07:41:23 +0200 |
commit | 3e8b021464a87a61a9b16cb4970ecc12acc3b958 (patch) | |
tree | a7f02c2b36e29416999a69f41e71c41715a8a2ac | |
parent | e73f4a4ccc608e929ac1e7ba4f7d27ff30f345e6 (diff) | |
download | buildstream-3e8b021464a87a61a9b16cb4970ecc12acc3b958.tar.gz |
_context.py: Call CASCache.release_resources() in __exit__()
This will be used to terminate the buildbox-casd child process.
-rw-r--r-- | src/buildstream/_context.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py index f9bac4c54..5aa1f595f 100644 --- a/src/buildstream/_context.py +++ b/src/buildstream/_context.py @@ -180,7 +180,8 @@ class Context(): # Called when exiting the with-statement context. # def __exit__(self, exc_type, exc_value, traceback): - return None + if self._cascache: + self._cascache.release_resources(self.messenger) # load() # |