Fix for mqtt duplication sending on sent failed
This commit is contained in:
parent
0db0bb8607
commit
037d1797ac
@ -368,6 +368,7 @@ final class MqttClientImpl implements MqttClient {
|
|||||||
if (channelFuture != null) {
|
if (channelFuture != null) {
|
||||||
pendingPublish.setSent(true);
|
pendingPublish.setSent(true);
|
||||||
if (channelFuture.cause() != null) {
|
if (channelFuture.cause() != null) {
|
||||||
|
this.pendingPublishes.remove(pendingPublish.getMessageId());
|
||||||
future.setFailure(channelFuture.cause());
|
future.setFailure(channelFuture.cause());
|
||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user