lordgamez commented on a change in pull request #974:
URL: https://github.com/apache/nifi-minifi-cpp/pull/974#discussion_r560807808



##########
File path: libminifi/src/FlowController.cpp
##########
@@ -360,6 +360,33 @@ int16_t FlowController::start() {
   }
 }
 
+int16_t FlowController::pause() {
+  std::lock_guard<std::recursive_mutex> flow_lock(mutex_);
+  if (!running_) {
+    logger_->log_warn("Can not pause flow controller that is not running");
+    return 0;
+  }
+
+  logger_->log_info("Pausing Flow Controller");
+  timer_scheduler_->pause();

Review comment:
       Thanks, I totally missed that they shared the same threadpool! I fixed 
it in 
[e69f7cf](https://github.com/apache/nifi-minifi-cpp/pull/974/commits/e69f7cfdcff8ec6fa3aa3c4e34199b90e9761270)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to