aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/commando.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/imap/commando.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/imap/commando.go b/internal/imap/commando.go
index 1ba4ed3..2edbc58 100644
--- a/internal/imap/commando.go
+++ b/internal/imap/commando.go
@@ -50,11 +50,11 @@ func (cl *Client) startCommander() {
cl.commander = &commander{cl, pipe, done}
- for _, conn := range cl.connections {
- if conn != nil {
+ go func() {
+ for conn := range cl.connChannel {
go executioner(conn, pipe, done)
}
- }
+ }()
}
func (cl *Client) stopCommander() {