diff --git a/vdirsyncer/sync/status.py b/vdirsyncer/sync/status.py index 1f3f910..b5f5246 100644 --- a/vdirsyncer/sync/status.py +++ b/vdirsyncer/sync/status.py @@ -169,6 +169,14 @@ class SqliteStatus(_StatusBase): ); """ ) + def close(self): + if self._c: + self._c.close() + self._c = None + + def __del__(self): + self.close() + def _is_latest_version(self): try: return bool(