mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove unnecessary comparison in queue logic
GitOrigin-RevId: 4dd8d1892ca090bd9ac93940d985cb21437f1ae1
This commit is contained in:
parent
9a48142919
commit
ce556499c0
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ define(['utils/EventEmitter', 'libs/sharejs'], function(EventEmitter, ShareJs) {
|
||||||
)
|
)
|
||||||
this.processUpdateFromServerInOrder(this.queuedMessages.shift())
|
this.processUpdateFromServerInOrder(this.queuedMessages.shift())
|
||||||
break
|
break
|
||||||
} else if (nextAvailableVersion <= this._doc.version) {
|
} else if (nextAvailableVersion < this._doc.version) {
|
||||||
// discard old updates if they are in the queue (since we are only
|
// discard old updates if they are in the queue (since we are only
|
||||||
// putting updates ahead of the current version in the queue this
|
// putting updates ahead of the current version in the queue this
|
||||||
// shouldn't happen, but we handle it anyway for safety.)
|
// shouldn't happen, but we handle it anyway for safety.)
|
||||||
|
|
Loading…
Reference in a new issue