Fix deadlock

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-03-14 05:38:25 -07:00
parent 3c85df0a44
commit 0425056c33
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "2.2.0-RC.8.5"
VERSION = "2.2.0-RC.8.6"
// PROTO is the currently supported protocol.
// 0 was the original

View File

@@ -2734,7 +2734,7 @@ func (o *consumer) setInitialPending() {
if !notFiltered {
// Check to see if we directly match the configured stream.
// Many clients will always send a filtered subject.
cfg := mset.config()
cfg := mset.cfg
if len(cfg.Subjects) == 1 && cfg.Subjects[0] == o.cfg.FilterSubject {
notFiltered = true
}