Prevent reconnect loop from occurring
I noticed recently that when composing a draft message, if the connection to the Drafts folder was dropped by the server, Geary would enter a fast reconnect loop. The problem was that, even if Imap.Folder signals "disconnect", it's close_async() must be called. This adds that logic to the background reestablishment code.
Showing with 32 additions and 10 deletions