Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drain the timer's channel if needed, to prevent memory leakage
When stopping a time.Timer, you need to check the return value and drain the channel to prevent a memory leak, if the Timer has fired.
- Loading branch information