Merge pull request #1941 from owncloud/session_heartbeat

generate url only once for heartbeat
This commit is contained in:
Bart Visscher 2013-02-26 11:49:59 -08:00
commit aa8bf3bbaa
1 changed files with 1 additions and 1 deletions

View File

@ -824,8 +824,8 @@ OC.set=function(name, value) {
*/
function sessionHeartBeat(){
OC.Router.registerLoadedCallback(function(){
var url = OC.Router.generate('heartbeat');
setInterval(function(){
var url = OC.Router.generate('heartbeat');
$.post(url);
}, 900000);
});