Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: send closed channel - incomingMessages #325

Closed
Allenxuxu opened this issue Jun 23, 2021 · 1 comment
Closed

panic: send closed channel - incomingMessages #325

Allenxuxu opened this issue Jun 23, 2021 · 1 comment
Labels

Comments

@Allenxuxu
Copy link

err := r.ConnectToNSQD(addr)

In extreme case, before it is successful, consumer has been stop.
It may lead to panic. Because of

func (r *Consumer) stopHandlers() {
	r.stopHandler.Do(func() {
		r.log(LogLevelInfo, "stopping handlers")
		close(r.incomingMessages)
	})
}
@mreiferson
Copy link
Member

see #326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants