Skip to content

Commit e53cf34

Browse files
authored
Fix MQTT3 component (#3501)
Signed-off-by: mikeee <[email protected]>
1 parent 12d7c2b commit e53cf34

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pubsub/mqtt3/mqtt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ func (m *mqttPubSub) Subscribe(ctx context.Context, req pubsub.SubscribeRequest,
181181
}
182182

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

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

0 commit comments

Comments
 (0)