aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/salticidae/network.h b/include/salticidae/network.h
index 98fcd2a..4fc575c 100644
--- a/include/salticidae/network.h
+++ b/include/salticidae/network.h
@@ -763,6 +763,10 @@ void PeerNetwork<O, _, __>::check_handshake(PeerConn *p) {
else
this->disp_terminate(old_conn);
}
+ else
+ this->user_tcall->async_call([this, conn](ThreadCall::Handle &) {
+ if (peer_cb) peer_cb(conn, true);
+ });
}
pending_peers.erase(p->conn->get_addr());
auto color_begin = "";