diff options
author | alecpl <alec@alec.pl> | 2011-02-15 13:24:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-02-15 13:24:47 +0000 |
commit | dd07e795377b94802205afd58ac3d1c9f401cdbc (patch) | |
tree | 94a388df2f8aacd10ee8c008a0393020294a9e86 /program/include/rcmail.php | |
parent | ab0b51a1fef87bcc643c3aaf2e635c811b28ccd8 (diff) |
- Close IMAP connection after SMTP, per discussion in (#1485975)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 1c9810681..319e53cc0 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1060,9 +1060,6 @@ class rcmail */ public function shutdown() { - if (is_object($this->imap)) - $this->imap->close(); - if (is_object($this->smtp)) $this->smtp->disconnect(); @@ -1073,6 +1070,9 @@ class rcmail $book->close(); } + if (is_object($this->imap)) + $this->imap->close(); + // before closing the database connection, write session data if ($_SERVER['REMOTE_ADDR']) session_write_close(); |