[Pkg-owncloud-commits] [owncloud] 04/42: add needUpgrade() check to addQueuedTask()
David Prévot
taffit at moszumanska.debian.org
Wed Jan 22 21:21:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 40c2f47cd975e91ef9d96f672356cec28ef4aef7
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Fri Jan 17 19:50:37 2014 +0100
add needUpgrade() check to addQueuedTask()
---
lib/public/backgroundjob.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/public/backgroundjob.php b/lib/public/backgroundjob.php
index a7f5449..688ecc1 100644
--- a/lib/public/backgroundjob.php
+++ b/lib/public/backgroundjob.php
@@ -173,8 +173,10 @@ class BackgroundJob {
* @return int id of task
*/
public static function addQueuedTask($app, $class, $method, $parameters) {
- self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters));
- return true;
+ if (!\OC::needUpgrade()) {
+ self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters));
+ return true;
+ }
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list