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!");