From: Vincent Petry Date: Thu, 2 Mar 2017 09:11:56 +0000 (+0100) Subject: Properly clear heartbeat interval X-Git-Tag: v12.0.0beta1~318^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab3757718279ca28a9306295b70bff3cc0f8f684;p=nextcloud-server.git Properly clear heartbeat interval Signed-off-by: Morris Jobke --- 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);