alecpl
2010-09-21 d560e78d98b291efd8db777e944bf57bb1b577e8
- Fix: close properly IMAP connection also when user is not logged in


2 files modified
5 ■■■■■ changed files
program/include/rcube_imap.php 3 ●●●● patch | view | raw | blame | history
program/include/rcube_imap_generic.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -156,8 +156,7 @@
     */
    function close()
    {
        if ($this->conn && $this->conn->connected())
            $this->conn->close();
        $this->conn->close();
        $this->write_cache();
    }
program/include/rcube_imap_generic.php
@@ -708,7 +708,7 @@
    function close()
    {
        if ($this->putLine("I LOGOUT")) {
        if ($this->logged && $this->putLine("I LOGOUT")) {
            if (!feof($this->fp))
                fgets($this->fp, 1024);
        }