Commit 3034657f authored by Ian Craggs's avatar Ian Craggs

Fix for bug #406921

parent c905542f
...@@ -1300,7 +1300,7 @@ int MQTTAsync_completeConnection(MQTTAsyncs* m, MQTTPacket* pack) ...@@ -1300,7 +1300,7 @@ int MQTTAsync_completeConnection(MQTTAsyncs* m, MQTTPacket* pack)
} }
} }
else else
MQTTAsync_disconnect_internal(m, 0); MQTTProtocol_closeSession(m->c, 0);
free(connack); free(connack);
m->pack = NULL; m->pack = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment