ethcore/snapshot: fix double-lock in Service::feed_chunk (#289)
This commit is contained in:
parent
0947261cf2
commit
7c9eed8d65
@ -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