Skip to content

Commit 96b6381

Browse files
authored
Join thread_move instead of killing it (#349)
Once we change the operational mode to STOPPED in the main thread, the move thread should stop by itself, so we can wait for it to join.
1 parent da53d18 commit 96b6381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/external_control.urscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ while control_mode > MODE_STOPPED:
806806
end
807807

808808
textmsg("ExternalControl: Stopping communication and control")
809-
kill thread_move
809+
join thread_move
810810
kill thread_trajectory
811811
kill thread_script_commands
812812
stopj(STOPJ_ACCELERATION)

0 commit comments

Comments
 (0)