summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-01 16:53:30 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-01 16:53:30 (GMT)
commit95bd068b173cec9d2184fddc7045f90d8af9c622 (patch)
tree7364f94bd463a995009f8d2ca876a0e9e9685646
parentff320d9e244b3e4a4d0f1fa37efcd1b2e0c01560 (diff)
downloadroundcubemail-plugins-kolab-95bd068b173cec9d2184fddc7045f90d8af9c622.tar.gz
Prevent kolab_zpush plugin from deadlocking
-rw-r--r--plugins/kolab_zpush/kolab_zpush.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php
index f19fe3a..9c35021 100644
--- a/plugins/kolab_zpush/kolab_zpush.php
+++ b/plugins/kolab_zpush/kolab_zpush.php
@@ -279,6 +279,10 @@ class kolab_zpush extends rcube_plugin
public function list_folders()
{
if (!isset($this->folders)) {
+ if (empty($this->cache)) {
+ $this->init_imap();
+ }
+
// read cached folder meta data
if ($cached_folders = $this->cache->read('folders')) {
$this->folders_meta = $cached_folders;