Skip to content

panic: send closed channel - incomingMessages #325

Description

@Allenxuxu

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)
	})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions