From d66b85289a1552e02e4c2c7cf62aa11ed240d5e3 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 14 Jun 2019 18:17:42 -0400 Subject: minor fix --- include/salticidae/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/salticidae/network.h b/include/salticidae/network.h index 09b85a0..b269acc 100644 --- a/include/salticidae/network.h +++ b/include/salticidae/network.h @@ -620,7 +620,7 @@ bool PeerNetwork::check_new_conn(const conn_t &conn, uint16_t port) { { /* found an unknown peer */ const auto &addr = conn->get_addr(); this->user_tcall->async_call([this, id](ThreadCall::Handle &) { - unknown_peer_cb(id); + if (unknown_peer_cb) unknown_peer_cb(id); }); if (allow_unknown_peer) { -- cgit v1.2.3-70-g09d2