Fix bug that was causing clients to disconnect

This commit is contained in:
Eric Zhang 2021-06-03 01:56:37 -05:00
parent 59f434ca96
commit 7b00ffdd85

View file

@ -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++;
}
}
}