You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Comment
This commit is contained in:
@@ -549,6 +549,12 @@ SyncApi.prototype._sync = function(syncOptions) {
|
|||||||
// This is the first failure, which may be spurious. To avoid unnecessary
|
// This is the first failure, which may be spurious. To avoid unnecessary
|
||||||
// connection error warnings we simply retry the /sync immediately. Only
|
// connection error warnings we simply retry the /sync immediately. Only
|
||||||
// if *that* one fails too do we say the connection has been lost.
|
// if *that* one fails too do we say the connection has been lost.
|
||||||
|
// Examples of when this may happen are:
|
||||||
|
// - Restarting backend servers. (In an HA world backends may be
|
||||||
|
// restarted all the time, and its easiest just to make the
|
||||||
|
// client retry).
|
||||||
|
// - Intermediate proxies restarting.
|
||||||
|
// - Device network changes.
|
||||||
// Should we emit a state like "MAYBE_CONNETION_LOST"?
|
// Should we emit a state like "MAYBE_CONNETION_LOST"?
|
||||||
self._syncConnectionLost = true;
|
self._syncConnectionLost = true;
|
||||||
self._sync(syncOptions);
|
self._sync(syncOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user