nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi-minifi-cpp] arpadboda commented on a change in pull request #650: MINIFICPP-1034 - MQTT processors doesnt work
Date Fri, 20 Sep 2019 08:53:02 GMT
arpadboda commented on a change in pull request #650: MINIFICPP-1034 - MQTT processors doesnt
work
URL: https://github.com/apache/nifi-minifi-cpp/pull/650#discussion_r326531799
 
 

 ##########
 File path: extensions/mqtt/processors/PublishMQTT.cpp
 ##########
 @@ -76,15 +67,15 @@ void PublishMQTT::onSchedule(core::ProcessContext *context, core::ProcessSession
 }
 
 void PublishMQTT::onTrigger(const std::shared_ptr<core::ProcessContext> &context,
const std::shared_ptr<core::ProcessSession> &session) {
-  std::shared_ptr<core::FlowFile> flowFile = session->get();
-
-  if (!flowFile) {
+  if (!reconnect()) {
 
 Review comment:
   Reconnect doesn't do anything unless the connection is interrupted. 
   If we have an existing connection (expected case), it just returns true. 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message