summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-03-02 10:11:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-23 23:37:24 -0600
commitab3757718279ca28a9306295b70bff3cc0f8f684 (patch)
tree3a553fc7feab721a4a2752f37bb348edff48ce9d /core/js
parent46a32045d76763f6ff3841e2f39fa0ba244eb858 (diff)
downloadnextcloud-server-ab3757718279ca28a9306295b70bff3cc0f8f684.tar.gz
nextcloud-server-ab3757718279ca28a9306295b70bff3cc0f8f684.zip
Properly clear heartbeat interval
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js')
-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);