From bb539d74cf91628fbdbcde725ce4d1995debce2a Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Fri, 28 Feb 2020 14:52:29 -0800 Subject: [PATCH] Should not ask match to acquire lock already held Signed-off-by: Derek Collison --- server/sublist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sublist.go b/server/sublist.go index 8c07c97e..37245638 100644 --- a/server/sublist.go +++ b/server/sublist.go @@ -262,7 +262,7 @@ func (s *Sublist) chkForInsertNotification(subject string, isLiteral bool) { // We are not a literal, so we may match any subject that we want. // Note we could be smarter here and try to make the list smaller, but probably not worth it TBH. for target, chs := range s.notify.insert { - r := s.Match(target) + r := s.matchNoLock(target) if len(r.psubs)+len(r.qsubs) > 0 { for _, ch := range chs { sendNotification(ch, true)