Simon Ser
4 years ago
No known key found for this signature in database
GPG Key ID: FDE7BE0E88F5E48
1 changed files with
6 additions and
0 deletions
-
conn_pool.go
|
|
@@ -54,5 +54,11 @@ func (pool *ConnPool) Put(conn *imapclient.Client) (token string, err error) { |
|
|
|
} |
|
|
|
|
|
|
|
pool.conns[token] = conn |
|
|
|
|
|
|
|
go func() { |
|
|
|
<-conn.LoggedOut() |
|
|
|
delete(pool.conns, token) |
|
|
|
}() |
|
|
|
|
|
|
|
return token, nil |
|
|
|
} |