Skip to content

Commit

Permalink
core(takePic): empty cheese on fail
Browse files Browse the repository at this point in the history
Change-Id: I0a6e3e367c059aa8d6c432455beefdba83931cb2
  • Loading branch information
andi34 committed Oct 9, 2022
1 parent 0d77e5a commit a5a29cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/core.js
Expand Up @@ -664,6 +664,8 @@ const photoBooth = (function () {
if (config.ui.shutter_animation) {
api.shutter.stop();
}
cheese.empty();

if (config.picture.retry_on_error > 0 && retry < config.picture.retry_on_error) {
photoboothTools.console.logDev('Taking picture failed. Retrying. Retry: ' + retry);
api.retryTakePic(data.style, retry);
Expand Down

0 comments on commit a5a29cb

Please sign in to comment.