ethcore/snapshot: fix double-lock in Service::feed_chunk (#289)
This commit is contained in:
parent
efb80e1032
commit
63fdad8d86
@ -766,7 +766,7 @@ impl Service {
|
|||||||
| Err(Error(SnapshotErrorKind::Snapshot(SnapshotError::RestorationAborted), _)) => (),
|
| Err(Error(SnapshotErrorKind::Snapshot(SnapshotError::RestorationAborted), _)) => (),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!("Encountered error during snapshot restoration: {}", e);
|
warn!("Encountered error during snapshot restoration: {}", e);
|
||||||
*self.restoration.lock() = None;
|
*restoration = None;
|
||||||
*self.status.lock() = RestorationStatus::Failed;
|
*self.status.lock() = RestorationStatus::Failed;
|
||||||
let _ = fs::remove_dir_all(self.restoration_dir());
|
let _ = fs::remove_dir_all(self.restoration_dir());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user