diff --git a/src/clientpaho.cpp b/src/clientpaho.cpp index ccede0b..622e44e 100644 --- a/src/clientpaho.cpp +++ b/src/clientpaho.cpp @@ -1118,7 +1118,7 @@ void ClientPaho::onFirstConnect(void* context, char* cause) { auto *cl = reinterpret_cast(context); std::string reason(nullptr == cause ? "Unknown cause" : cause); - cl->pushIncomingEvent([cl, reason]() { cl->onFirstConnectInstance(reason); }); + cl->pushIncomingEvent([cl, reason]() { cl->onFirstConnectOnInstance(reason); }); } }