Skip to content

Commit 2f8b558

Browse files
committed
Join thread_move instead of killing it
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 bff7bf2 commit 2f8b558

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)