aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-14 18:17:42 -0400
committerDeterminant <[email protected]>2019-06-14 18:17:42 -0400
commitd66b85289a1552e02e4c2c7cf62aa11ed240d5e3 (patch)
treec9d66748b7de45eb7fc3fc56d4b3f0d1c131f4fb /include
parentdeb478812b259cdf586ab5105284ae227fe42680 (diff)
minor fix
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/network.h2
1 files changed, 1 insertions, 1 deletions
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<O, _, __>::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)
{