Skip to content

Commit bb56e15

Browse files
author
Matthew Smith
committed
End subscription context is cancelled and processAll is false
1 parent 0e3d309 commit bb56e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subscriber.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (s Subscriber) processEvents(
143143
}
144144
s.processEvent(d, dataType, eventChan)
145145
case <-ctx.Done():
146-
if s.opts.processAll && processedAll {
146+
if (s.opts.processAll && processedAll) || !s.opts.processAll {
147147
close(eventChan)
148148
return
149149
}

0 commit comments

Comments
 (0)