mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #2712 from nats-io/issue-2708
[FIXED #2708] Removing a source depending on timing could cause a server panic.
This commit is contained in:
@@ -1787,6 +1787,9 @@ func (mset *stream) setSourceConsumer(iname string, seq uint64) {
|
||||
si.sseq, si.dseq = seq, 0
|
||||
si.last = time.Now()
|
||||
ssi := mset.streamSource(iname)
|
||||
if ssi == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// Determine subjects etc.
|
||||
var deliverSubject string
|
||||
|
||||
Reference in New Issue
Block a user