- Close IMAP connection after SMTP, per discussion in (#1485975)

release-0.6
alecpl 14 years ago
parent ab0b51a1fe
commit dd07e79537

@ -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();

Loading…
Cancel
Save