Skip to content

Commit

Permalink
add synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Oct 10, 2023
1 parent 1767659 commit 7612b24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public boolean generate(final String thumbnailId, final File outputFile) {
});
}

protected void createScreenshot(final String url, final int width, final int height, final File outputFile) {
protected synchronized void createScreenshot(final String url, final int width, final int height, final File outputFile) {
final Page page = worker.getValue4();
File tempPngFile = null;
try {
Expand Down

0 comments on commit 7612b24

Please sign in to comment.