diff --git a/session.go b/session.go index 44af8d1..08c6724 100644 --- a/session.go +++ b/session.go @@ -237,9 +237,7 @@ func (sm *SessionManager) Put(username, password string) (*Session, error) { } } - if !timer.Stop() { - <-timer.C - } + timer.Stop() s.locker.Lock() if s.imapConn != nil {