When unsubscribing do not check rrMap for reserved replies.

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-09-26 21:42:39 -07:00
parent 4e0656f377
commit 75236a5bcd

View File

@@ -3071,7 +3071,8 @@ func (c *client) unsubscribe(acc *Account, sub *subscription, force, remove bool
}
// Now check to see if this was part of a respMap entry for service imports.
if acc != nil {
// We can skip subscriptions on reserved replies.
if acc != nil && !isReservedReply(sub.subject) {
acc.checkForReverseEntry(string(sub.subject), nil, true)
}
}