Remove the error when stopping the network (#8671)
This commit is contained in:
committed by
Marek Kotewicz
parent
ee41fa6f30
commit
fe5f5b28d9
@@ -475,7 +475,7 @@ impl ChainNotify for EthSync {
|
||||
|
||||
fn stop(&self) {
|
||||
self.eth_handler.snapshot_service.abort_restore();
|
||||
self.network.stop().unwrap_or_else(|e| warn!("Error stopping network: {:?}", e));
|
||||
self.network.stop();
|
||||
}
|
||||
|
||||
fn broadcast(&self, message_type: ChainMessageType) {
|
||||
@@ -833,9 +833,7 @@ impl ManageNetwork for LightSync {
|
||||
|
||||
fn stop_network(&self) {
|
||||
self.proto.abort();
|
||||
if let Err(e) = self.network.stop() {
|
||||
warn!("Error stopping network: {}", e);
|
||||
}
|
||||
self.network.stop();
|
||||
}
|
||||
|
||||
fn network_config(&self) -> NetworkConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user