1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +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) {
if (delay === undefined) {
delay = 5000 + Math.floor(Math.random() * 5000)
delay = 5000 + Math.floor(Math.random() * 5000);
}
if (this._keepAliveTimer !== null) {