mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01: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
1 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue