diff --git a/showbits-thermal-printer-ui/src/AppPhoto.vue b/showbits-thermal-printer-ui/src/AppPhoto.vue index fd52684..3e1acb4 100644 --- a/showbits-thermal-printer-ui/src/AppPhoto.vue +++ b/showbits-thermal-printer-ui/src/AppPhoto.vue @@ -69,8 +69,11 @@ async function postImage(image: Blob | File) { } async function onGallery(file: File) { - await postImage(file); - await initStream(facing.value); + try { + await postImage(file); + } finally { + await initStream(facing.value); + } } async function onRecord() {