mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-15 03:26:53 -04:00
Merge ebd8b85072
into 3986835f58
This commit is contained in:
commit
a6e11af52f
1 changed files with 8 additions and 1 deletions
|
@ -586,7 +586,14 @@ function handleUserChanges(client, message)
|
|||
// client) are relative to revision r - 1. The follow function
|
||||
// rebases "changeset" so that it is relative to revision r
|
||||
// and can be applied after "c".
|
||||
try
|
||||
{
|
||||
changeset = Changeset.follow(c, changeset, false, apool);
|
||||
}catch(e){
|
||||
console.warn("Can't apply USER_CHANGES "+changeset+", possibly because of mismatched follow error");
|
||||
client.json.send({disconnect:"badChangeset"});
|
||||
return;
|
||||
}
|
||||
|
||||
if ((r - baseRev) % 200 == 0) { // don't let the stack get too deep
|
||||
async.nextTick(callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue