aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-19 17:12:09 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:22:56 +0200
commite08423f95631a1b06f2de0216c5765552092075c (patch)
treed39516c121367596211655e927c8183e7e2709d0 /lib/base.php
parent2d63fd77de1cbfdb0a3474cadf99f1dcf4962d5f (diff)
downloadnextcloud-server-e08423f95631a1b06f2de0216c5765552092075c.tar.gz
nextcloud-server-e08423f95631a1b06f2de0216c5765552092075c.zip
release all locks on shutdown
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index b7f19c96406..09159dc22aa 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -666,6 +666,8 @@ class OC {
//make sure temporary files are cleaned up
$tmpManager = \OC::$server->getTempManager();
register_shutdown_function(array($tmpManager, 'clean'));
+ $lockProvider = \OC::$server->getLockingProvider();
+ register_shutdown_function(array($lockProvider, 'releaseAll'));
if ($systemConfig->getValue('installed', false) && !self::checkUpgrade(false)) {
if (\OC::$server->getConfig()->getAppValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {