diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-01-25 12:36:50 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-01-25 12:43:44 +0100 |
commit | 7f693b65655eb905043d39bb53590b6c92b1f99c (patch) | |
tree | b28e6c831325ae298f57b49d0542f9a3bc3d73ca /program | |
parent | cba8df5e1b8368ed9d59523bddbdc8d15ff50bec (diff) |
Send LOGOUT only when closing connection in logged state (#1487784)
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 8d84bf736..b9a796c33 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -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(); } |