1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
This commit is contained in:
David Baker
2016-03-14 17:13:01 +00:00
parent 5e18c84e53
commit d13fbd0e3e

View File

@@ -694,7 +694,7 @@ SyncApi.prototype._processSyncResponse = function(syncToken, data) {
*/ */
SyncApi.prototype._startKeepAlives = function(delay) { SyncApi.prototype._startKeepAlives = function(delay) {
if (delay === undefined) { if (delay === undefined) {
delay = 5000 + Math.floor(Math.random() * 5000) delay = 5000 + Math.floor(Math.random() * 5000);
} }
if (this._keepAliveTimer !== null) { if (this._keepAliveTimer !== null) {