Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race on Broker.done channel
The underlying case was not waiting for the goroutine running the `responseReceiver()` method to fully complete if SASL authentication failed. This created a window where a further call to `Broker.Open()` could overwrite the `Broker.done` channel value while the goroutine still running `responseReceiver()` was trying to close the same channel. Fixes: 2382 Signed-off-by: Adrian Preston <[email protected]>
- Loading branch information