matrix-js-sdk
cd9d1daf - Reset /sync backoff if setTimeout takes a long time to fire

Commit
10 years ago
Reset /sync backoff if setTimeout takes a long time to fire This fixes vector-web/vector-im#536 The bug here is that we were assuming `setTimeout` would fire after the requested time. This is not true when the machine is asleep. We now timestamp before and after `setTimeout` and reset the attempt count if we have waited more than twice what we originally requested. This allows for some jitter which is to be expected.
Author
Parents
Loading