From 62730322b6798eb00d6dc65e8fa77103cca2d39c Mon Sep 17 00:00:00 2001
From: Alexander Wellbrock <a.wellbrock@mailbox.org>
Date: Thu, 23 Apr 2020 10:27:56 +0200
Subject: [PATCH] Pass the cleanup

In theory everything should cleanup itself on exit. This is a builtin
feature of libgpiod.
---
 pi_mqtt_gpio/modules/gpiod.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pi_mqtt_gpio/modules/gpiod.py b/pi_mqtt_gpio/modules/gpiod.py
index 2245923..73691b9 100644
--- a/pi_mqtt_gpio/modules/gpiod.py
+++ b/pi_mqtt_gpio/modules/gpiod.py
@@ -88,8 +88,7 @@ class GPIO(GenericGPIO):
         return self.pins[offset].get_value()
 
     def cleanup(self):
-        self.loop.stop()
-        self.io.chip_deleter(self.chip)
+        pass
 
     async def _add_event_detect(self, pin, callback):
         while True:
-- 
GitLab