Bugfix - set DUP flag when needed
Pre-release
Pre-release
After completely sending a message, the DUP flag is set on PUBLISH messages with QoS > 0. So when the connection drops and a re-delivery is attempted, the DUP flag is set as it should be.