summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 8c6fc0d9c07..370e68f5602 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1351,7 +1351,7 @@ function initCore() {
var url = OC.generateUrl('/heartbeat');
var heartBeatTimeout = null;
var heartBeat = function() {
- clearTimeout(heartBeatTimeout);
+ clearInterval(heartBeatTimeout);
heartBeatTimeout = setInterval(function() {
$.post(url);
}, interval * 1000);