-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't close the dying channel right away
Now that we have internal goroutines writing to it, we can't close it arbitrarily or we risk a panic writing to a closed channel. Instead just write nil, and have the receiver close it (since it knows nobody else is writing at the moment).
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters