diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-03-02 10:11:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-23 23:37:24 -0600 |
commit | ab3757718279ca28a9306295b70bff3cc0f8f684 (patch) | |
tree | 3a553fc7feab721a4a2752f37bb348edff48ce9d /core/js | |
parent | 46a32045d76763f6ff3841e2f39fa0ba244eb858 (diff) | |
download | nextcloud-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.js | 2 |
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); |