From 894cf32d90308efbf7af5339677d822d27633bc3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 2 Jun 2019 14:33:19 -0400 Subject: [PATCH] Close recv stream after receiving block --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 8b49782..ae0bb5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(()); }, _ => {}, } -- 2.39.5