diff --git a/src/MQTT/Client.cpp b/src/MQTT/Client.cpp index c9ac845d..bd84827e 100644 --- a/src/MQTT/Client.cpp +++ b/src/MQTT/Client.cpp @@ -50,8 +50,8 @@ Client::Client() auto io = IO::Manager::getInstance(); auto te = Misc::TimerEvents::getInstance(); connect(te, &Misc::TimerEvents::lowFreqTimeout, this, &Client::sendData); - connect(io, &IO::Manager::connectedChanged, this, &Client::resetStatistics); connect(io, &IO::Manager::frameReceived, this, &Client::onFrameReceived); + connect(io, &IO::Manager::connectedChanged, this, &Client::resetStatistics); } /**