Fix mutex unlock

This commit is contained in:
Neil Alexander 2022-03-22 14:56:45 +00:00
parent 1364d85985
commit 8ab5ad2fb5
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -79,7 +79,7 @@ func (r *Inputer) startWorkerForRoom(roomID string) {
})
w := v.(*worker)
w.Lock()
defer w.Lock()
defer w.Unlock()
if !loaded || w.subscription == nil {
consumer := r.Cfg.Matrix.JetStream.Prefixed("RoomInput" + jetstream.Tokenise(w.roomID))
subject := r.Cfg.Matrix.JetStream.Prefixed(jetstream.InputRoomEventSubj(w.roomID))