From 8a9900f501e463d1efce451b5cbf12e4019ca45a Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Mon, 10 Jun 2013 20:35:04 -0700 Subject: [PATCH] Deleting device on close. --- pyad2usb/ad2usb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyad2usb/ad2usb.py b/pyad2usb/ad2usb.py index 2e2f8d4..38c96d3 100644 --- a/pyad2usb/ad2usb.py +++ b/pyad2usb/ad2usb.py @@ -212,6 +212,7 @@ class AD2USB(object): Closes the device. """ self._device.close() + del self._device self._device = None def get_config(self):