Remove the error when stopping the network (#8671)

This commit is contained in:
Pierre Krieger
2018-05-22 06:35:13 +02:00
committed by Marek Kotewicz
parent ee41fa6f30
commit fe5f5b28d9
5 changed files with 14 additions and 16 deletions

View File

@@ -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 {