mirror of
https://github.com/fhmq/hmq.git
synced 2026-08-30 22:34:52 +00:00
fixed bug
This commit is contained in:
+5
-1
@@ -397,6 +397,11 @@ func (b *Broker) PublishMessage(packet *packets.PublishPacket) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
//deliver message to other node
|
||||||
|
go b.DeliverMessage(packet)
|
||||||
|
}
|
||||||
|
|
||||||
var subs []interface{}
|
var subs []interface{}
|
||||||
var qoss []byte
|
var qoss []byte
|
||||||
err := b.topicsMgr.Subscribers([]byte(packet.TopicName), packet.Qos, &subs, &qoss)
|
err := b.topicsMgr.Subscribers([]byte(packet.TopicName), packet.Qos, &subs, &qoss)
|
||||||
@@ -429,7 +434,6 @@ func (b *Broker) PublishMessage(packet *packets.PublishPacket) {
|
|||||||
publish(sub, packet)
|
publish(sub, packet)
|
||||||
}
|
}
|
||||||
|
|
||||||
b.DeliverMessage(packet)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Broker) OnlineOfflineNotification(clientID string, online bool) {
|
func (b *Broker) OnlineOfflineNotification(clientID string, online bool) {
|
||||||
|
|||||||
Reference in New Issue
Block a user