diff --git a/src/html5-qrcode-scanner.ts b/src/html5-qrcode-scanner.ts
index 9cb5b89..562b132 100644
--- a/src/html5-qrcode-scanner.ts
+++ b/src/html5-qrcode-scanner.ts
@@ -359,6 +359,7 @@ export class Html5QrcodeScanner {
// Assuming file based scan was ongoing.
this.html5Qrcode.clear();
emptyHtmlContainer();
+ resolve();
}
});
}