aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--session.go4
1 files changed, 1 insertions, 3 deletions
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 {