Skip to content

Commit 53eee90

Browse files
committed
(roseus_bt) Always return failure on interrupted actions
1 parent cb82fdf commit 53eee90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roseus_bt/euslisp/nodes.l

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@
170170
(ros::ros-info ";; Stashing current progress")
171171
(send thr :suspend)
172172
(when (send thr :is-done)
173-
(send self :send-result (send thr :get-result)))
173+
;; interrupted actions always return failure
174+
;; `:get-result' must be called to free the thread
175+
(send thr :get-result)
176+
(send self :send-result nil))
174177
(when (send self :is-active)
175178
(send self :set-preempted)))))
176179

0 commit comments

Comments
 (0)