Skip to content

Commit 5d7bec0

Browse files
Added await to minsky.save() to prevent a race condition when saving on closing. For Ravel #468.
1 parent bcd8b22 commit 5d7bec0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ecolab

gui-js/apps/minsky-electron/src/app/managers/CommandsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ export class CommandsManager {
997997

998998
static async save() {
999999
if (this.currentMinskyModelFilePath) {
1000-
minsky.save(this.currentMinskyModelFilePath);
1000+
await minsky.save(this.currentMinskyModelFilePath);
10011001
}
10021002
else
10031003
await this.saveAs();

0 commit comments

Comments
 (0)