]> source.dussan.org Git - nextcloud-server.git/commitdiff
Close session for avatar get
authorLukas Reschke <lukas@owncloud.com>
Wed, 22 Oct 2014 16:12:21 +0000 (18:12 +0200)
committerLukas Reschke <lukas@owncloud.com>
Wed, 22 Oct 2014 16:12:21 +0000 (18:12 +0200)
This somehow blocked the "Users" UI for me when having a lot of users. - Shouldn't hurt here.

core/avatar/controller.php

index 03eb9da1dc575dd7963073fc4f01877dd6569862..ca055f5fd753e11fda8bd95a80738426f61806b2 100644 (file)
@@ -12,6 +12,7 @@ class Controller {
        public static function getAvatar($args) {
                \OC_JSON::checkLoggedIn();
                \OC_JSON::callCheck();
+               \OC::$server->getSession()->close();
 
                $user = stripslashes($args['user']);
                $size = (int)$args['size'];