From ce556499c0a8c90155cec9be8e4f28afe5de2b3f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 28 Mar 2019 10:17:10 +0000 Subject: [PATCH] remove unnecessary comparison in queue logic GitOrigin-RevId: 4dd8d1892ca090bd9ac93940d985cb21437f1ae1 --- services/web/public/src/ide/editor/ShareJsDoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/src/ide/editor/ShareJsDoc.js b/services/web/public/src/ide/editor/ShareJsDoc.js index 78ab0b31d0..ca0a07c867 100644 --- a/services/web/public/src/ide/editor/ShareJsDoc.js +++ b/services/web/public/src/ide/editor/ShareJsDoc.js @@ -179,7 +179,7 @@ define(['utils/EventEmitter', 'libs/sharejs'], function(EventEmitter, ShareJs) { ) this.processUpdateFromServerInOrder(this.queuedMessages.shift()) 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 // putting updates ahead of the current version in the queue this // shouldn't happen, but we handle it anyway for safety.)