Send LOGOUT only when closing connection in logged state (#1487784)

pull/88/head
Aleksander Machniak 12 years ago
parent cba8df5e1b
commit 7f693b6565

@ -906,7 +906,7 @@ class rcube_imap_generic
*/
function closeConnection()
{
if ($this->putLine($this->nextTag() . ' LOGOUT')) {
if ($this->logged && $this->putLine($this->nextTag() . ' LOGOUT')) {
$this->readReply();
}

Loading…
Cancel
Save