You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Oops: set keepAliveTimer!
This commit is contained in:
@@ -667,9 +667,9 @@ SyncApi.prototype._pokeKeepAlive = function() {
|
||||
// We wait a short time though, just in case somehow the server
|
||||
// is in a mode where it 400s /versions responses and sync etc.
|
||||
// responses fail, this will mean we don't hammer in a loop.
|
||||
setTimeout(success, 2000);
|
||||
self._keepAliveTimer = setTimeout(success, 2000);
|
||||
} else {
|
||||
setTimeout(
|
||||
self._keepAliveTimer = setTimeout(
|
||||
self._pokeKeepAlive.bind(self),
|
||||
5000 + Math.floor(Math.random() * 5000)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user