diff --git a/src/adc_jury_server_alg_node.cpp b/src/adc_jury_server_alg_node.cpp index 47aa5f43b877251bb48307306fd0f0aca0cabd94..9d39d16c64209116b38a9bbcf4a002f54ab39980 100644 --- a/src/adc_jury_server_alg_node.cpp +++ b/src/adc_jury_server_alg_node.cpp @@ -96,7 +96,11 @@ bool AdcJuryServerAlgNode::jury_modeCallback(iri_adc_msgs::jury_mode::Request &r //do operations with req and output on res if(this->config_.block_service) + { + this->alg_.unlock(); sleep(this->config_.block_service_time); + this->alg_.lock(); + } //res.data2 = req.data1 + my_var; @@ -183,7 +187,9 @@ void AdcJuryServerAlgNode::adc_juryGetFeedbackCallback(iri_adc_msgs::adc_juryFee //ROS_INFO("AdcJuryServerAlgNode::adc_juryGetFeedbackCallback feedback.status='%s'", feedback->status.c_str()); if(this->config_.block_feedback) { + this->alg_.unlock(); sleep(this->config_.block_feedback_time); + this->alg_.lock(); } this->alg_.unlock(); }