summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcmail.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-15 13:24:47 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-15 13:24:47 +0000
commit51806b925b01cfeb9a39faa0e9d2bec8259a9089 (patch)
tree785fb00962f3e911ef27896af67f4f6bfcc629b1 /roundcubemail/program/include/rcmail.php
parent5862e0d7c6edd90c2523ddde5705e7486f6c20e9 (diff)
- Close IMAP connection after SMTP, per discussion in (#1485975)
git-svn-id: https://svn.roundcube.net/trunk@4547 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
-rw-r--r--roundcubemail/program/include/rcmail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 1c9810681..319e53cc0 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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();