BewareMyPower commented on code in PR #131:
URL: https://github.com/apache/pulsar-client-cpp/pull/131#discussion_r1036650048


##########
lib/ProducerImpl.cc:
##########
@@ -180,11 +182,18 @@ void ProducerImpl::handleCreateProducer(const 
ClientConnectionPtr& cnx, Result r
     if (state != Ready && state != Pending) {
         LOG_DEBUG("Producer created response received but producer already 
closed");
         failPendingMessages(ResultAlreadyClosed, false);
+        if (result == ResultOk || result == ResultTimeout) {
+            int requestId = client_.lock()->newRequestId();

Review Comment:
   Is it guaranteed that `client_.lock()` doesn't return a nullptr here?



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to