summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-25 12:36:50 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-25 12:36:50 +0100
commit18372a236d459f2a098c8604a0f912f9aa728f98 (patch)
treee80e160b2f39a8bcb9a2cb085be8b8087cafe2b8 /program/lib/Roundcube
parent01fc82d0efa913892ea407462c8725645ae08621 (diff)
Send LOGOUT only when closing connection in logged state (#1487784)
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php2
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();
}