From 293c7c45e2856964b75d458d34f2d4121239580d Mon Sep 17 00:00:00 2001 From: BennyR Date: Wed, 7 May 2014 15:11:05 +0200 Subject: [PATCH] Set action server properly to preempted --- cerevoice_tts/src/CerevoiceTts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cerevoice_tts/src/CerevoiceTts.cpp b/cerevoice_tts/src/CerevoiceTts.cpp index 5aeb672..04c9cd3 100644 --- a/cerevoice_tts/src/CerevoiceTts.cpp +++ b/cerevoice_tts/src/CerevoiceTts.cpp @@ -210,6 +210,8 @@ void CerevoiceTts::preemptCB() if(ret == 0) ROS_ERROR("Player can't be stopped!"); + + action_server_.setPreempted(); } else ROS_ERROR("Player is NULL!");