We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c1a13 commit 0da6990Copy full SHA for 0da6990
runusb
@@ -151,6 +151,14 @@ def kill_robot_process(path, process):
151
pass
152
153
154
+def noop_close(path, process):
155
+ """
156
+ We don't actually want to kill in the case of the update process.
157
+ Could lead to the robot in a broken state!
158
159
+ pass
160
+
161
162
class AutorunProcessRegistry(object):
163
TYPE_HANDLERS = {
164
USBType.ROBOT: open_run_robot_code_process,
@@ -159,7 +167,7 @@ class AutorunProcessRegistry(object):
167
168
TYPE_CLOSE_HANDLER = {
169
USBType.ROBOT: kill_robot_process,
- USBType.UPDATE: open_update_robot_process
170
+ USBType.UPDATE: noop_close
171
}
172
165
173
def __init__(self):
0 commit comments