Properly clear heartbeat interval
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
46a32045d7
commit
ab37577182
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue