diff --git a/build/browser/app.js b/build/browser/app.js index ce4f4be2..9ae3a111 100644 --- a/build/browser/app.js +++ b/build/browser/app.js @@ -69,6 +69,11 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState }; this.burn = function(image, drive) { + + // Stop scanning drives when burning + // otherwise Windows throws EPERM + self.scanner.stop(); + console.debug('Burning ' + image + ' to ' + drive); return self.writer.burn(image, drive).then(function() { console.debug('Done!'); diff --git a/lib/browser/app.js b/lib/browser/app.js index 55893702..92588fd7 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -68,6 +68,11 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState }; this.burn = function(image, drive) { + + // Stop scanning drives when burning + // otherwise Windows throws EPERM + self.scanner.stop(); + console.debug('Burning ' + image + ' to ' + drive); return self.writer.burn(image, drive).then(function() { console.debug('Done!');