mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 22:26:18 +02:00
importHtml: avoid race when applying empty document and the import changeset at the same time
This commit is contained in:
parent
8eb5640cb7
commit
668d62fa3f
@ -94,8 +94,6 @@ exports.setPadHTML = async (pad, html) => {
|
||||
const theChangeset = builder.toString();
|
||||
|
||||
apiLogger.debug(`The changeset: ${theChangeset}`);
|
||||
await Promise.all([
|
||||
pad.setText('\n'),
|
||||
pad.appendRevision(theChangeset),
|
||||
]);
|
||||
await pad.setText('\n');
|
||||
await pad.appendRevision(theChangeset);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user