Fix bug that was causing clients to disconnect
This commit is contained in:
parent
59f434ca96
commit
7b00ffdd85
1 changed files with 1 additions and 1 deletions
|
@ -97,13 +97,13 @@ class Rustpad {
|
|||
}
|
||||
for (let i = this.revision - start; i < operations.length; i++) {
|
||||
let { id, operation } = operations[i];
|
||||
this.revision++;
|
||||
if (id === this.me) {
|
||||
this.serverAck();
|
||||
} else {
|
||||
operation = OpSeq.from_str(JSON.stringify(operation));
|
||||
this.applyServer(operation);
|
||||
}
|
||||
this.revision++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue