From e52dc2b17cdbf29084cfba069c3766050385a32f Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 19 Feb 2013 02:05:51 +0000 Subject: [PATCH] dont reset head count, use the one we should :) --- src/node/handler/PadMessageHandler.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index f546b1c36..4e056dcb8 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -928,12 +928,10 @@ function handleClientReady(client, message) //If this is a reconnect, we don't have to send the client the ClientVars again if(message.reconnect == true) { - //Save the revision in sessioninfos, we take the revision from the info the client send to us - sessioninfos[client.id].rev = message.client_rev; //Join the pad and start receiving updates client.join(padIds.padId); - //Save the current revision in sessioninfos, should be the same as in clientVars - sessioninfos[client.id].rev = pad.getHeadRevisionNumber(); // I'm not sure this is a great idea here + //Save the revision in sessioninfos, we take the revision from the info the client send to us + sessioninfos[client.id].rev = message.client_rev; } //This is a normal first connect else