From 3e9f8b641e623054e50f69a5b41d85f8e65a2e13 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 3 Aug 2018 17:22:34 -0400 Subject: ... --- src/hotstuff.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hotstuff.cpp') diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index af1ac88..04b31f8 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -350,6 +350,7 @@ void HotStuffBase::print_stat() const { for (const auto &replica: pn.all_peers()) { auto conn = pn.get_peer_conn(replica); + if (conn == nullptr) continue; size_t ns = conn->get_nsent(); size_t nr = conn->get_nrecv(); conn->clear_nsent(); -- cgit v1.2.3