forked from espressif/esp-mqtt
The time for retransmitting a message was set before transfer was done. This ment that if the transfer speed is slow or the message is big then it would be possible to trigger a retransmit too early. Closes https://github.com/espressif/esp-mqtt/issues/131