Skip to content
Snippets Groups Projects
Commit dd197ac8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

After receiving all packet data, receive the next packet.

This appears to be why it was hanging. :D
parent 93915f20
No related branches found
No related tags found
No related merge requests found
......@@ -1923,6 +1923,8 @@ MQTT.Packet.newBytes = function() {
}
if (this.connection.rx_need)
this.connection.rx_once = this.once('read', MQTT.Packet.newBytes);
else
this.connection.rx_once = this.once('read', MQTT.Connection.rxPacket);
}
catch (e) {
this.connection.error(e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment