aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/client.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 02:19:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 02:19:54 +0200
commite4c683ece5044cee42b670bf04031429e426eddb (patch)
tree781013530db54fee7b81a9e33386b2cd4f4a93be /internal/imap/client.go
parentd131d0dec6a6c7f0af3511bd908cda8a3d910237 (diff)
downloadfeed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.gz
feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.bz2
feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.zip
Rename from 'client' to 'cl'
Diffstat (limited to '')
-rw-r--r--internal/imap/client.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/imap/client.go b/internal/imap/client.go
index 731e35b..783acf6 100644
--- a/internal/imap/client.go
+++ b/internal/imap/client.go
@@ -23,17 +23,17 @@ type Client struct {
nextFreeIndex int
}
-func (client *Client) Disconnect() {
- if client != nil {
- client.stopCommander()
+func (cl *Client) Disconnect() {
+ if cl != nil {
+ cl.stopCommander()
connected := false
- for _, conn := range client.connections {
+ for _, conn := range cl.connections {
connected = conn.disconnect() || connected
}
if connected {
- log.Print("Disconnected from ", client.host)
+ log.Print("Disconnected from ", cl.host)
}
}
}