Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tea): allocate msgs channel in constructor
Race condition bug: Start() is called in a new gorotuine, then Send(). If the Send happens before the msgs channel is allocated, the message is dropped. Instead allocate the channel in the constructor, so msgs is never nil. Signed-off-by: Christian Stewart <christian@paral.in>
- Loading branch information