public override void Close() { if (!Closed) { Closed = true; NextReader.Close(); } }
public override void Close() { if (!Closed) { Closed = true; if (_imapClient != null) { try { _imapClient.Logout(); } catch (Exception ex) { Logger.Error("Failed to logout : " + ex.Message, ex); } } ThreadPool.QueueUserWorkItem(state => NextReader.Close()); } }