]> source.dussan.org Git - nextcloud-server.git/commitdiff
Properly clear heartbeat interval
authorVincent Petry <pvince81@owncloud.com>
Thu, 2 Mar 2017 09:11:56 +0000 (10:11 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 24 Mar 2017 05:37:24 +0000 (23:37 -0600)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
core/js/js.js

index 8c6fc0d9c07cdf6f520f36d4c395e95381f2673a..370e68f560242559219e70522bec279e63c269f6 100644 (file)
@@ -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);