Commit 74570067 authored by Peter Hutterer's avatar Peter Hutterer

uhid: reset the various nodes on destroy()

Emtpy those lists so we're sure they're gone. Shouldn't matter since nothing
is supposed to access them anyway after destroy(), but hey, let's be safe.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 4f30b3b9
Pipeline #63381 passed with stage
in 2 minutes and 53 seconds
......@@ -392,6 +392,8 @@ class UHIDDevice(object):
self._remove_fd_from_poll(self._fd)
os.close(self._fd)
self._is_destroyed = True
self.device_nodes.clear()
self.hidraw_nodes.clear()
def start(self, flags):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment