mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +00:00
Fix EPERM issue when burning in Windows
The issue is fixed by stopping the drive scanner interval before burning.
This commit is contained in:
parent
4bfb161e5c
commit
18b0bb38e9
@ -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