mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Merge pull request #1 from resin-io/jviotti/fix/eperm-windows
Fix EPERM issue when burning in Windows
This commit is contained in:
commit
8340220b5e
@ -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!');
|
||||
|
@ -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!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user