diff --git a/scratch_link.py b/scratch_link.py index 7ab4e7f..2099480 100755 --- a/scratch_link.py +++ b/scratch_link.py @@ -263,6 +263,7 @@ class BTSession(Session): if self.sock: logger.info(f"disconnect to BT socket: {self.sock}") self.sock.close() + self.sock = None def __del__(self): self.close()