aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bus.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bus.py b/src/bus.py
index 267a435..62c0c37 100644
--- a/src/bus.py
+++ b/src/bus.py
@@ -66,6 +66,13 @@ class Bus:
self.bus = None
+ def __del__(self):
+ '''
+ Destructor
+ '''
+ self.close()
+
+
def create(self, flags : int = 0) -> str:
'''
Create the bus