mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #36028 from overleaf/mj-fatal-op-long
[web] Stop arming FATAL_OP_TIMEOUT timer GitOrigin-RevId: f0b98d6fb5d2312d3b5137ebba0775a88cb01b72
This commit is contained in:
committed by
Copybot
parent
0c5e55a8be
commit
774f2c8f06
@@ -522,6 +522,14 @@ export class ShareJsDoc extends EventEmitter {
|
||||
}
|
||||
|
||||
private startFatalTimeoutTimer(update: Update) {
|
||||
if (
|
||||
intermittentConnectionImprovementsEnabled &&
|
||||
this.type === 'sharejs-text-ot'
|
||||
) {
|
||||
// We're storing ops locally as a backup, so no need to panic if they
|
||||
// don't reach the server this time.
|
||||
return
|
||||
}
|
||||
// If an op doesn't get acked within FATAL_OP_TIMEOUT, something has
|
||||
// gone unrecoverably wrong (the op will have been retried multiple times)
|
||||
if (this._timeoutTimer != null) {
|
||||
|
||||
Reference in New Issue
Block a user