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

pull/57/merge
Aleksander Machniak 12 years ago
parent 01fc82d0ef
commit 18372a236d

@ -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