Skip to content

Commit 18c1a13

Browse files
Pass process when killing robot process
Pass missing arg Fixes #9
1 parent 82505eb commit 18c1a13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runusb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@ class AutorunProcessRegistry(object):
203203
def _detect_dead_mountpoint_path(self, path):
204204
LOGGER.info("Lost mountpoint: %s", path)
205205
usb_type = self.mountpoint_types[path]
206+
process = self.mountpoint_processes[path]
206207
close_handler = self.TYPE_CLOSE_HANDLER[usb_type]
207-
close_handler(path)
208+
close_handler(path, process)
208209
LOGGER.info(" -> closed process")
209210
del self.mountpoint_processes[path]
210211
del self.mountpoint_types[path]

0 commit comments

Comments
 (0)