- Fix: close properly IMAP connection also when user is not logged in

release-0.6
alecpl 14 years ago
parent a3de4f6054
commit d560e78d98

@ -156,8 +156,7 @@ class rcube_imap
*/
function close()
{
if ($this->conn && $this->conn->connected())
$this->conn->close();
$this->conn->close();
$this->write_cache();
}

@ -708,7 +708,7 @@ class rcube_imap_generic
function close()
{
if ($this->putLine("I LOGOUT")) {
if ($this->logged && $this->putLine("I LOGOUT")) {
if (!feof($this->fp))
fgets($this->fp, 1024);
}

Loading…
Cancel
Save