summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-21 07:54:21 +0000
committeralecpl <alec@alec.pl>2010-09-21 07:54:21 +0000
commitd560e78d98b291efd8db777e944bf57bb1b577e8 (patch)
tree222fe369417c7a253c8b22df4fdc083e32dd34da /program/include/rcube_imap.php
parenta3de4f6054b02af4a58bd061d27a0afbca736a42 (diff)
- Fix: close properly IMAP connection also when user is not logged in
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 3d9253975..2151f5c2b 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -156,8 +156,7 @@ class rcube_imap
*/
function close()
{
- if ($this->conn && $this->conn->connected())
- $this->conn->close();
+ $this->conn->close();
$this->write_cache();
}