From b7e06f0f00710765113bbc560fcbaf39e466cbce Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 2 Jul 2019 19:17:39 -0400 Subject: ... --- include/salticidae/network.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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::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 = ""; -- cgit v1.2.3-70-g09d2