aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/connection.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/imap/connection.go')
-rw-r--r--internal/imap/connection.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/imap/connection.go b/internal/imap/connection.go
index 4d209a9..5f62586 100644
--- a/internal/imap/connection.go
+++ b/internal/imap/connection.go
@@ -102,10 +102,10 @@ func (conn *connection) ensureFolder(folder Folder) error {
if conn.mailboxes.locking(folder) {
// someone else tried to create the MB -- try again, now that he's done
return conn.ensureFolder(folder)
- } else {
- defer conn.mailboxes.unlocking(folder)
}
+ defer conn.mailboxes.unlocking(folder)
+
log.Printf("Checking for folder '%s'", folder)
mbox, found, err := conn.list(folder.str)