summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-04-21 00:08:55 +0200
committerRobin Appelman <icewind@owncloud.com>2013-04-21 00:08:55 +0200
commit07f510692cfa6dfb8357b7eb66e897a03fd20e3f (patch)
tree9771a747c26692b3665b34e72341da85a9685991 /lib/base.php
parentdb0ea9780b3056a9161205588e55c4808648ec0a (diff)
downloadnextcloud-server-07f510692cfa6dfb8357b7eb66e897a03fd20e3f.tar.gz
nextcloud-server-07f510692cfa6dfb8357b7eb66e897a03fd20e3f.zip
Ensure we don't throw an exception before we can upgrade to the new backgroundjob system
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index fda65a221c7..631f9341546 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -561,7 +561,11 @@ class OC {
*/
public static function registerCacheHooks() {
// register cache cleanup jobs
- \OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC');
+ try { //if this is executed before the upgrade to the new backgroundjob system is completed it will throw an exception
+ \OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC');
+ } catch (Exception $e) {
+
+ }
OC_Hook::connect('OC_User', 'post_login', 'OC_Cache_File', 'loginListener');
}