Skip to content

Commit

Permalink
legacy: Fix DeviceHandle finalizer checking for the wrong attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly authored and jonasmalacofilho committed Mar 11, 2024
1 parent 8205fc3 commit 92da7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usb/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __init__(self, dev):
self.__claimed_interface = None

def _finalize_object(self):
if hasattr(self, 'self.dev') and self.dev:
if hasattr(self, 'dev') and self.dev:
util.dispose_resources(self.dev)
self.dev = None

Expand Down

0 comments on commit 92da7b3

Please sign in to comment.