Moved params out of publishQos0

This commit is contained in:
andsel
2016-12-13 23:43:02 +01:00
parent da94a6a014
commit 3100d835df
3 changed files with 4 additions and 6 deletions
@@ -62,7 +62,7 @@ class MessagesPublisher {
//QoS 0
if (qos == AbstractMessage.QOSType.MOST_ONE) {
PublishMessage publishMsg = BestEffortMessageSender.createPublishForQos(topic, MOST_ONE, message);
this.bestEffortSender.publishQos0(targetSession, topic, message, publishMsg);
this.bestEffortSender.publishQos0(targetSession, publishMsg);
} else {
//QoS 1 or 2
int messageId = targetSession.nextPacketId();