Skip to content

Commit

Permalink
Merge pull request #4 from apptreesoftware/master
Browse files Browse the repository at this point in the history
Unable to cancel subscription
  • Loading branch information
vetcher authored Apr 5, 2019
2 parents 0e3d309 + bb56e15 commit f6c6292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (s Subscriber) processEvents(
}
s.processEvent(d, dataType, eventChan)
case <-ctx.Done():
if s.opts.processAll && processedAll {
if (s.opts.processAll && processedAll) || !s.opts.processAll {
close(eventChan)
return
}
Expand Down

0 comments on commit f6c6292

Please sign in to comment.