aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/serialhdl.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-16 21:29:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-16 23:53:45 -0400
commit3dc0522870fc901089f2844c86b045e8807a22e8 (patch)
treedc2f074f81172907292e8a7b34f3947c512722d2 /klippy/serialhdl.py
parent9814daa999387085f95f55aa36dd1842d46e33e5 (diff)
downloadkutter-3dc0522870fc901089f2844c86b045e8807a22e8.tar.gz
kutter-3dc0522870fc901089f2844c86b045e8807a22e8.tar.xz
kutter-3dc0522870fc901089f2844c86b045e8807a22e8.zip
serialhdl: Don't define a __del__() method
The existence of a __del__() method prevents deallocation on python2 if there are circular references. Just remove the method as disconnect() should already be called directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
-rw-r--r--klippy/serialhdl.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py
index 46e31ed4..f410e30a 100644
--- a/klippy/serialhdl.py
+++ b/klippy/serialhdl.py
@@ -222,8 +222,6 @@ class SerialReader:
logging.info("%s: %s", params['#name'], params['#msg'])
def handle_default(self, params):
logging.warn("got %s", params)
- def __del__(self):
- self.disconnect()
# Class to send a query command and return the received response
class SerialRetryCommand: