diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-20 15:25:46 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-20 15:25:46 +0100 |
commit | e6e457e4a72b77ca3c9d8a6154d78cb9bbf1c786 (patch) | |
tree | 5840013c0835dd9865786ac114677c3b2e89ce53 /plugins/base/smtp.go | |
parent | 8b10324ab64c3c99e46ed272dd5d32c89ff156a1 (diff) | |
download | alps-e6e457e4a72b77ca3c9d8a6154d78cb9bbf1c786.tar.gz alps-e6e457e4a72b77ca3c9d8a6154d78cb9bbf1c786.zip |
Fix dangling goroutine on session expiration
The timer channel may already have been drained by `case <-timer.C`. In
this case, we need not to drain it again or we'll block forever.
To fix this, stop draining the timer channel. Since we're not going to
use the timer again anyway, it should be fine.
Diffstat (limited to 'plugins/base/smtp.go')
0 files changed, 0 insertions, 0 deletions