Skip to content

Commit

Permalink
Added await to minsky.save() to prevent a race condition when saving …
Browse files Browse the repository at this point in the history
…on closing. For Ravel #468.
  • Loading branch information
highperformancecoder committed Feb 26, 2024
1 parent bcd8b22 commit 5d7bec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecolab
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ export class CommandsManager {

static async save() {
if (this.currentMinskyModelFilePath) {
minsky.save(this.currentMinskyModelFilePath);
await minsky.save(this.currentMinskyModelFilePath);
}
else
await this.saveAs();
Expand Down

0 comments on commit 5d7bec0

Please sign in to comment.