From ab3757718279ca28a9306295b70bff3cc0f8f684 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 2 Mar 2017 10:11:56 +0100 Subject: [PATCH] Properly clear heartbeat interval Signed-off-by: Morris Jobke --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5