When stopping consumers on a flow stop the consumer then remove the listener

Description

On stop of a flow the flow was removing the listener then stopping the consumer. This can result in misleading NPE. Switch operation to stop consumer then remove listener.

Environment

None

Workaround Description

None

Assignee

Jeff Mitchell

Reporter

Jeff Mitchell

Labels

None

Trac ticket

None

milestone

None

Workaround Exists

None

Components

Fix versions

Affects versions

Priority

Major
Configure