Skip to content

Commit f6c6292

Browse files
authored
Merge pull request #4 from apptreesoftware/master
Unable to cancel subscription
2 parents 0e3d309 + bb56e15 commit f6c6292

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)