Skip to content

Commit

Permalink
fix: Race condition in takeScreenshot, causing it to not-crop sometim…
Browse files Browse the repository at this point in the history
…es (#144)
  • Loading branch information
jankeesvanandel authored Dec 18, 2020
1 parent 0bc262b commit e19b8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/automate.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default class AutomateBackend extends BaseBackend {

const image = await jimp.read(buffer);

await image.write(screenshotPath);
await image.writeAsync(screenshotPath);
}

async resizeWindow (id, width, height, currentWidth, currentHeight) {
Expand Down

0 comments on commit e19b8d7

Please sign in to comment.