Skip to content

Commit

Permalink
Fix MQTT3 component (#3501)
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <[email protected]>
  • Loading branch information
mikeee authored Aug 2, 2024
1 parent 12d7c2b commit e53cf34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pubsub/mqtt3/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ func (m *mqttPubSub) Subscribe(ctx context.Context, req pubsub.SubscribeRequest,
}

// Delete the topic from the map first, which stops routing messages to handlers
m.subscribingLock.Lock()
defer m.subscribingLock.Unlock()
delete(m.topics, topic)

// We will call Unsubscribe only if cleanSession is true or if "unsubscribeOnClose" in the request metadata is true
Expand Down

0 comments on commit e53cf34

Please sign in to comment.