mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
fixed bug
This commit is contained in:
@@ -397,6 +397,11 @@ func (b *Broker) PublishMessage(packet *packets.PublishPacket) {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
//deliver message to other node
|
||||
go b.DeliverMessage(packet)
|
||||
}
|
||||
|
||||
var subs []interface{}
|
||||
var qoss []byte
|
||||
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)
|
||||
}
|
||||
|
||||
b.DeliverMessage(packet)
|
||||
}
|
||||
|
||||
func (b *Broker) OnlineOfflineNotification(clientID string, online bool) {
|
||||
|
||||
Reference in New Issue
Block a user