]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Close recv stream after receiving block
authorMatt Corallo <git@bluematt.me>
Sun, 2 Jun 2019 18:33:19 +0000 (14:33 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 2 Jun 2019 18:33:19 +0000 (14:33 -0400)
src/main.rs

index 8b49782a29b3cf220af245010611a1a3b2419be4..ae0bb5b833ce37510b099072bd97068ac7bac532 100644 (file)
@@ -156,6 +156,7 @@ pub fn scan_node(scan_time: Instant, node: SocketAddr, manual: bool) {
                                                return future::err(());
                                        }
                                        check_set_flag!(recvd_block, "block");
+                                       return future::err(());
                                },
                                _ => {},
                        }