diff --git a/dwave/system/samplers/dwave_sampler.py b/dwave/system/samplers/dwave_sampler.py index ae3cf3c2..873ecbf1 100644 --- a/dwave/system/samplers/dwave_sampler.py +++ b/dwave/system/samplers/dwave_sampler.py @@ -163,6 +163,8 @@ def __init__(self, failover=False, retry_interval=-1, **config): self.failover = failover self.retry_interval = retry_interval + def __del__(self): + self.client.close() @property def properties(self):